Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: converting from str to int

by pvaldes (Chaplain)
on Jul 01, 2014 at 17:32 UTC ( #1091887=note: print w/replies, xml ) Need Help??


in reply to converting from str to int

open (my $FILE, '<',"res.txt") or die $! ; while (<$FILE>){ chomp; my ($foo,$bar) = split /\+/, $_, 2; print $foo + $bar,"\n";}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2019-10-24 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?