Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: My first obfuscated code

by Beatnik (Parson)
on Sep 22, 2002 at 11:14 UTC ( [id://199873]=note: print w/replies, xml ) Need Help??


in reply to My first obfuscated code

A quick run thru, if I get this correctly :)
You basically stuff the alphabet in @_, join it in $_, stuff a bunch of numbers in @_ again, loop thru those values, abusing $. (input line operator) while doing so, and printing a substr of 1 from the alphabet, position depending on those numbers you have in @_. What about :
$.=join('',a..z); print substr($.,$_,1) for(9,0,15,7); #or.. uhm err print substr(join('',a..z),$_,1) for(9,0,15,7);
which basically does the same

Greetz
Beatnik
...Perl is like sex: if you're doing it wrong, there's no fun to it.

Replies are listed 'Best First'.
Re: Re: My first obfuscated code
by BrowserUk (Patriarch) on Sep 22, 2002 at 11:37 UTC

    Or even
    $W=$,=$\,die@{[a..z]}[9,0,15,7];


    Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-23 22:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found