Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Just Another Perl Hacker,

by davido (Cardinal)
on Dec 22, 2018 at 01:07 UTC ( #1227594=note: print w/replies, xml ) Need Help??


in reply to Just Another Perl Hacker,

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: note [id://1227594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2023-03-30 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (74 votes). Check out past polls.

    Notices?