Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: your obfuscation magic!by tobyink (Canon) |
on Apr 24, 2012 at 21:00 UTC ( [id://966940]=note: print w/replies, xml ) | Need Help?? |
Beware that some delimiters have special meanings. e.g. m/$foo/i interpolates $foo whereas m'$foo'i does not. Regular expressions are not the only delimiters that can be replaced with whatever. qq(), q(), qx() and qw() work similarly. For example, the following assigns a string consisting of a single space character to $foo:
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|