Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

(crazyinsomniac) Re: Shoot yourself on the foot

by crazyinsomniac (Prior)
on Jan 24, 2002 at 01:55 UTC ( #141039=note: print w/replies, xml ) Need Help??


in reply to Shoot yourself on the foot

Here it is, straight from the "olden times" of pm, as it appeared on my homenode for some time:
And now it has come time to Shoot Yourself in the Foot with PERL
You stab yourself in the foot repeatedly with an incredibly large and very heavy Swiss Army knife.
or
You pick up the gun and begin to load it. The gun and your foot begin to grow to huge proportions and the world around you slows down, until the gun fires. It makes a tiny hole, which you don't feel.
That was an excerpt from the famed "How to Shoot yourself in foot in $programmingLanguage". Here's my version:
You stab yourself in the foot repeatedly with an incredibly large and very heavy Swiss Army knife, causing a big mess, but accomplishing your goal. Some time later, you figure out how to take apart the knife and use it properly, so you stab yourself again, but with greater precision and ease.

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

  • Comment on (crazyinsomniac) Re: Shoot yourself on the foot

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://141039]
help
Chatterbox?
[choroba]: at least in my lingo
[moritz]: .oO( oh temps, oh moritz )
[GotToBTru]: you are correct, choroba, but of course there is no point in doing one without the other
[GotToBTru]: un less you're working on write-only memory
[1nickt]: my $x = $aohoaoh->[0]->{' foo'}->[0]->{'bar' }; should work
[thepkd]: not indexing
[thepkd]: getting data out of the ds
[choroba]: it depends. Give more details, please
[thepkd]: i used a series of {}'s but it dont work
[choroba]: You need square brackets for arrays

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2016-12-06 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.