(?#comment) is a comment in a regular expression
|
/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 |
$program =~ s{
|
}[]gsx; # Replace with nothing (i.e. remove) and specify modifiers g s and x to be operational |