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 ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found