Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Perl Python Partial Polyglot

by bliako (Abbot)
on Nov 23, 2018 at 23:12 UTC ( [id://1226245]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Python Partial Polyglot
in thread Perl Python Partial Polyglot

From the "explanation" you linked above I was impressed by this:

"o" from the second letter of bool: True.__class__.__name__1

I thought one can extend this to cause error messages in $! (in Perl), e.g. "No such file or directory" and use single chars from them to try and form an obfuscated string. e.g. perl -e 'open(IN, "<", "");print @{[split(//,$!)]}[8,1,1,10,9,3,6];'

Have I re-invented the wheel or is this my first obfuscated Perl signature?

bw, bliako

Replies are listed 'Best First'.
Re^3: Perl Python Partial Polyglot
by kschwab (Vicar) on Nov 24, 2018 at 00:26 UTC

    I guess ref() would be pretty similar.

    perl -e 'print @{[split //,ref(\$.)]}[-1,-2,0,1,-2,-3]'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2025-11-09 07:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (65 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.