Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re: your obfuscation magic!
in thread your obfuscation magic!

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:

my $foo = q q q;
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://966940]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-23 22:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found