diff --git a/Changes b/Changes index d998182..f3fa38b 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,13 @@ +feedgnuplot (1.34) + + * Fix for "Use of implicit split to @_ is deprecated". Thanks to Corey + Putkunz + + * Declaring feedgnuplot as a package to let MetaCPAN index this + distribution + + -- Dima Kogan Wed, 14 May 2014 00:45:24 -0700 + feedgnuplot (1.33) * fixed incorrect plotting of --timefmt --rangesize plots diff --git a/bin/feedgnuplot b/bin/feedgnuplot index e1e6d10..08e177b 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -1,4 +1,7 @@ #!/usr/bin/perl + +package feedgnuplot; # for the metacpan indexer + use strict; use warnings; use Getopt::Long; @@ -13,7 +16,7 @@ use Thread::Queue; use Pod::Usage; use Time::Piece; -my $VERSION = 1.33; +my $VERSION = 1.34; my %options; interpretCommandline(); @@ -371,7 +374,7 @@ sub interpretCommandline $options{timefmt} =~ s/^\s*//; $options{timefmt} =~ s/\s*$//; - my $Nfields = scalar split( ' ', $options{timefmt}); + my $Nfields = () = split /\s+/, $options{timefmt}, -1; $options{timefmt_Ncols} = $Nfields; # make sure --xlen is an integer. With a timefmt xlen goes through strptime