1 |
(?#comment) is a comment in a regular expression
|
2 | /x modifier interprets whitespace in regular expression as for readability and not as "real" characters -- the Perl manual gives an example shown below which removes /* .. */ from C programs |
3 |
$program =~ s{
|
4 | }[]gsx; # Replace with nothing (i.e. remove) and specify modifiers g s and x to be operational |