We don't bite newbies here... much | |
PerlMonks |
Perl Lazy Surfing!by Sigmund (Pilgrim) |
on Sep 10, 2001 at 17:56 UTC ( [id://111454]=CUFP: print w/replies, xml ) | Need Help?? |
Well, i admit it: it's a really strange script... Today i was on the beach. Now that September has come, surfers rule the beach 'cos this weather makes surf possible here in my hometown. I usually go to the beach with a friend of mine, and we spend hours talkin' about computers, programming and unix systems, glancing at girls and wondering why should they be interested in such a geek beings... So, there was a longboard contest there, and we were kidding those strained surfers trying to ride two-feet-tall waves and spending a whole lot of muscles in vain; what a poor task was theirs... Suddenly Icchio a.k.a. Matteo (my friend) had a silly great idea: "Why don't you code a Perl script which surfs for you?" <KIDDING ME> This is what i did: i took my Camel Book out of my sack (yes, i DO carry with me on the beach the Camel Book)(really) and coded this script that, as usual, is warning safe and strict compliant! You can use it when you gotta choose something by chance: each guy runs the script and who scores best decides! Enjoy! SiG perl -le 's ssSss.s sSsSiss.s s$sSss.ss .$s\107ss.print'
Back to
Cool Uses for Perl
|
|