Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: TMTOWTDI the new year!

by japh (Friar)
on Dec 23, 2001 at 15:14 UTC ( #134044=note: print w/replies, xml ) Need Help??


in reply to TMTOWTDI the new year!

my first publicly-posted perl obfuscation.
#!/usr/bin/perl -l print bulldozer_(" _ _ | two _ __ ___ _ __| |_ __ ___ ___ _ __ | | _____ | | '_ \ / _ \ '__| | '_ ` _ \ / _ \| '_ \| |/ / __| | thousand | |_) | __/ | | | | | | | | (_) | | | | <\__ \ | | .__/ \___|_| |_|_| |_| |_|\___/|_| |_|_|\_\___/ | two |_| ") ;sub#marine) bulldozer_{ #"=. $_ = length shift; $_ --+$_ --+$_ --+$_ --+$_ --+$_ --+$_ }#_bulldozer
Update: spoiler

A string (the 2002 banner) constructed with figlet and vi is passed to a function named bulldozer_, which takes the length of it and repeatedly adds that number to itself while decrementing it by 1 each time. The result of this construct is passed back to the original print statement.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2019-05-22 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (138 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!