Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Numerical value of strings

by cianoz (Friar)
on Aug 05, 2003 at 15:15 UTC ( [id://281017]=note: print w/replies, xml ) Need Help??


in reply to Numerical value of strings

maybe there is something more than a space in your string (if you use -w you should have a warning "Argument ? isn't numeric in addition") however you can always do
$p_data[3] =~ s/\D//g; $total += $p_data[3];

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-20 05:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found