Even better, change it to:
my @finalResult;
Perl doesn't need arrays or hashes to be 'set to 0'. Doing so simply adds visual clutter and, in some interesting cases, leads to surprising errors as the OP found!
In reply to Re^2: Issues with Chart::Gnuplot
by GrandFather
in thread Issues with Chart::Gnuplot
by priyankgandhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |