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

RE: Adding 2 + 2

by jeorgen (Pilgrim)
on Sep 11, 2000 at 19:49 UTC ( #31904=note: print w/ replies, xml ) Need Help??


in reply to Adding 2 + 2

my $four; my @array = split "", (2 x 2); sub the { my $four = shift; return "two plus two is: $four"} sub answer { print shift} sub result { return $four} foreach my $two (@array) { $four += $two } answer the result;

/jeorgen


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://31904]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2014-12-28 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls