Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: converting from str to int

by pvaldes (Chaplain)
on Jul 01, 2014 at 17:32 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1091887]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found