open (my $FILE, '<',"res.txt") or die $! ; while (<$FILE>){ chomp; my ($foo,$bar) = split /\+/, $_, 2; print $foo + $bar,"\n";}
In reply to Re: converting from str to int
by pvaldes
in thread converting from str to int
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |