1 | modifier g ensures we match and remove all /* .. */ strings |
2 | modifier s treats newlines as part of string |
3 | modifier x means that whitespace ignored and # treated like a comment in conventional Perl |
4 | Note use of syntax s{old}[new] as equivalent to s%old%new% |
5 | One can use any types of parantheses such as s(old){new} etc. |