Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Just Another Perl Hacker,

by choroba (Cardinal)
on Dec 21, 2018 at 15:43 UTC ( [id://1227570]=obfuscated: print w/replies, xml ) Need Help??

Having fun with references.
print map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[ +{}],[sub{}^*ARGV,3];

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re: Just Another Perl Hacker,
by davido (Cardinal) on Dec 22, 2018 at 01:07 UTC

    This term is quite clever:

    \* || {}

    Take a reference to the typeglob *| (obtaining something like GLOB(0x23d84f0)) and OR it with the stringified value of {} (which is something like HASH(0x217f328). The strings "GLOB" and "HASH" when ORed together as "GLOB"|"HASH" evaluate to "OM_J". The character at index 3 is J.

    The whitespace obfuscated well because it looks more intuitive than the actual syntax. Here is how it parses:

    \*| | {}

    Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: obfuscated [id://1227570]
Approved by marto
Front-paged by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found