Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: In love with perl

by draconis (Scribe)
on May 02, 2003 at 15:55 UTC ( [id://255051]=note: print w/replies, xml ) Need Help??


in reply to In love with perl

And to get a glimpse of the future

YearsFromNow(); sub YearsFromNow { $wifeWeight=120; $yearsGoBye=10; $wifeAppeal=10; while($yearsGoBye > 0){ $wifeAppeal--; $wifeWeight=$wifeWeight + 7; $yearsGoBye--; if($yearsGoBye == 5){ $add2Kids = 2; $wifeWeight = $wifeWeight + 15; } print "Appeal = $wifeAppeal\n"; print "Weight = $wifeWeight\n"; } }

Replies are listed 'Best First'.
Re: Re: In love with perl
by Vig Darmond (Initiate) on May 02, 2003 at 21:42 UTC
    :) And what about dying?
    Dying(); sub Dying { die "Oops! He's dead...\n"; }

Log In?
Username:
Password:

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

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

    No recent polls found