Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://281021]
help
Chatterbox?
shmem throws a bavarian hesh bug at thezip
[shmem]: note how only a change of rhytm and from mayor to minor makes cuban out of bavarian ;-)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-04-27 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (512 votes). Check out past polls.