Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Numerical value of strings

by thinker (Parson)
on Aug 05, 2003 at 15:25 UTC ( #281021=note: print w/ replies, xml ) Need Help??


in reply to Numerical value of strings

Hi mgdude

I can't replicate this on my RedHat 9 machine.

my total = 0; my @arr = (" 7", 8, " 9", 10, 11 , " 12 "); $total += $_ for @arr; print "$t\n";

outputs 57, as expected

cheers

thinker


Comment on Re: Numerical value of strings
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-12-25 01:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (159 votes), past polls