in reply to Issues with Chart::Gnuplot

change
my @finalResult = {};
into
my @finalResult = ();
Cheers
LuCa

Replies are listed 'Best First'.
Re^2: Issues with Chart::Gnuplot
by GrandFather (Saint) on Jul 11, 2009 at 23:37 UTC

    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!


    True laziness is hard work