Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

v.Perl

by Malevolyn (Novice)
on Jul 28, 2003 at 10:15 UTC ( [id://278381]=poem: print w/replies, xml ) Need Help??

Tinkered with this in other languages (*GASP* PYTHON!!) and decided to make a Perl form.
#!usr/bin/perl while ($programming_knowledge > $life) { $life = $life-1; }

Replies are listed 'Best First'.
Re: v.Perl
by MrCromeDome (Deacon) on Jul 28, 2003 at 14:26 UTC
    Interesting. . . ++ to you.

    FYI, it would be more idiomatic to write the above as:

    $life -= 1 while $programming_knowledge > $life;
    Cheers!
    MrCromeDome
      --$life while $programming_knowledge > $life;

      Makeshifts last the longest.

Re: v.Perl
by jmm (Initiate) on Jul 28, 2003 at 21:00 UTC
    Surely you should change the - to a + (if your programming knowledge is sufficiently great, you probably need to get a life).
      I interpreted this in a diferent way: Messing with programming too much makes your life shorter...

      Example: today I lost half a day of my life trying to understand what's wrong with my use of Error.pm, only to find that I didn't qw/:try/ :(

      But, maybe I don't qualify as an example, since $my_programming_knowledge < $life

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-19 01:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found