Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-02-02 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (15 votes). Check out past polls.

    Notices?