in reply to converting from str to int
You're opening the file wrong. Try this:
open(FILE, "-|", "bc < res.txt"); @res=<FILE>; print "@res";
In Section
Seekers of Perl Wisdom
in reply to converting from str to int
open(FILE, "-|", "bc < res.txt"); @res=<FILE>; print "@res";