sandipgd has asked for the wisdom of the Perl Monks concerning the following question:
if (opendir(DIR, $dir)){ find (\&process, $dir); foreach my $val (sort { $a <=> $b} @sortarray){ @values= split(/\t/, $val); push(@finalresult, [Math::BigFloat->new($values[1]),Math::BigFloat +->new($values[2])] ); } my $dataSet = Chart::Gnuplot::DataSet->new( points => \@finalresult, style => "linespoints", title => "points" ); $chart->plot2d($dataSet); }else{print "Directory not found:$dir\n";} @finalresult = (); @values = (); @sortarray = (); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: getting problem to free an array values..
by graff (Chancellor) on Jul 11, 2009 at 01:27 UTC |