|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: Detecting if a string is a regular expressionby AnomalousMonk (Prior) |
| on Jan 10, 2013 at 23:40 UTC ( #1012758=note: print w/ replies, xml ) | Need Help?? |
|
... any $string can be used as a valid regex like in m/$string/ ... ... and you don't even need the m// or qr// incantation. The =~ binding operator can do the trick:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||