Skip Menu |

This queue is for tickets about the Chart-Gnuplot CPAN distribution.

Report information
The Basics
Id: 72037
Status: new
Priority: 0/
Queue: Chart-Gnuplot

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.17
Fixed in: (no value)



Subject: Module doesn't perform localization of $\
Package: Chart::Gnuplot 0.17 Perl: perl 5, version 14, subversion 2 (v5.14.2) built for x86_64-linux-thread-multi Linux: Linux noname 3.0-ARCH #1 SMP PREEMPT Wed Oct 19 10:27:51 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux The subroutine _thaw doesn't localizes $\ prior to writing data to the temporary file. That is the following code doesn't work as expected: use Chart::Gnuplot; $\ = "\n"; my $chart = Chart::Gnuplot->new(output => "test.png"); my $data = Char::Gnuplot::DataSet->new(xdata => [0..10], ydata => [0..10], style => "lines"); $chart->plot2d($data); In this example all lines in temporary data file will be separated by blank lines and gnuplot will not join corresponding points. As the result, the output doesn't contain any line. Possible solution: add "local $\ = undef;" at the beginning of _thaw subroutine.