Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 musing on the Monastery: (5)
As of 2024-09-17 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.