No such thing as a small change | |
PerlMonks |
Re^3: testing an if statement in a stringby AnomalousMonk (Archbishop) |
on Oct 31, 2013 at 23:14 UTC ( [id://1060658]=note: print w/replies, xml ) | Need Help?? |
Why the double parenthesis in line 2? The outermost pair of parens are simply the paired delimiters of the q// operator; a wide range of delimiters, paired or not, can be used by the various string and regex operators. The inner parens are copied from the string as it was given in the OP.
See Quote and Quote-like Operators (and also Regexp Quote-Like Operators) in perlop.
In Section
Seekers of Perl Wisdom
|
|