good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Can you use a scaler as an operator?by hippo (Bishop) |
on Jan 22, 2014 at 10:04 UTC ( [id://1071579]=note: print w/replies, xml ) | Need Help?? |
You would need to use Extended Patterns to accomplish this I think. eg. if ( 'asdf' =~ /(?$icase)$str/ ) { print "it works!\n" }See the perlre document for full details.
In Section
Seekers of Perl Wisdom
|
|