Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

RE: Adding 2 + 2

by d4vis (Chaplain)
on Sep 12, 2000 at 02:32 UTC ( #32009=note: print w/ replies, xml ) Need Help??


in reply to Adding 2 + 2

@list=(1,2,3); if ($list[1] eq '2' && $list[2]++ eq '3') { print "The answer is $list[2]\n"; } else { print "Insufficiently large value of 2\n"; }


~d4vis
#!/usr/bin/fnord


Comment on RE: Adding 2 + 2
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-09-23 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (219 votes), past polls