in reply to Can you use a scaler as an operator?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can you use a scaler as an operator?
by AnomalousMonk (Archbishop) on Jan 23, 2014 at 00:12 UTC | |
|
Re^2: Can you use a scaler as an operator?
by jar00n (Novice) on Jan 22, 2014 at 21:28 UTC |