in reply to Issues with Chart::Gnuplot
my @finalResult = {}; [download]
my @finalResult = (); [download]
Even better, change it to:
my @finalResult; [download]
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!