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

Re: Re: Ghost in the machine.

by jmcnamara (Monsignor)
on Feb 02, 2002 at 22:18 UTC ( #142969=note: print w/ replies, xml ) Need Help??

in reply to Re: Ghost in the machine.
in thread Ghost in the machine.

This is more artifice than obfuscation.

The "& _ x ord $ ;" code is used to convert my lowercase PerlMonks ID jmcnamara to my uppercase CPAN directory JMCNAMARA. I could have used uc but I thought that I should put in a little effort. ;-)

# The following are equivalent perl -MCPAN -e 'install jmcnamara & _ x ord $ ;' perl -MCPAN -e 'install "jmcnamara" & ( "_" x ord($;) )' perl -MCPAN -e 'install "jmcnamara" & ( "_" x 28 )' # With bitwise string "&" the longer string is truncated # to the length of the shorter string. Therefore: perl -MCPAN -e 'install "jmcnamara" & ( "_" x 9 )' perl -MCPAN -e 'install "jmcnamara" & "_________"' perl -MCPAN -e 'install JMCNAMARA'

Running this will cause CPAN to generate an error because you are trying to install a directory instead of module (or bundle). This helpfully translates my PerlMonks name into my real name. Here is the output as seen through tail -l.     Don't be silly, you can't install John McNamara ;-)

This error message is buried in


Comment on Re: Re: Ghost in the machine.
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2015-11-30 16:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (777 votes), past polls