From 539b2035d87b31fe5028a12e18ffdad8f5055215 Mon Sep 17 00:00:00 2001 From: Corey Putkunz Date: Mon, 7 Apr 2014 10:20:57 +0800 Subject: [PATCH 1/3] Fix for "Use of implicit split to @_ is deprecated at /d/home/coreyp/bin/feedgnuplot line 377" --- bin/feedgnuplot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index e1e6d10..fb23c8e 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -371,7 +371,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 From 72adba82f79de10e42deb43b47462c606a42d251 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Wed, 14 May 2014 00:43:13 -0700 Subject: [PATCH 2/3] Declaring feedgnuplot as a package to pacify the MetaCPAN indexer Hopefully this is sufficient. We'll see https://github.com/dkogan/feedgnuplot/pull/16 https://github.com/CPAN-API/metacpan-web/issues/1148 https://github.com/CPAN-API/metacpan-web/issues/1170 https://github.com/CPAN-API/metacpan-web/issues/994 --- bin/feedgnuplot | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/feedgnuplot b/bin/feedgnuplot index fb23c8e..6656485 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; From 498047e7853dc1aa5aba29dcf09f180b25862b7e Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Wed, 14 May 2014 00:45:49 -0700 Subject: [PATCH 3/3] version bump --- Changes | 10 ++++++++++ bin/feedgnuplot | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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 6656485..08e177b 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -16,7 +16,7 @@ use Thread::Queue; use Pod::Usage; use Time::Piece; -my $VERSION = 1.33; +my $VERSION = 1.34; my %options; interpretCommandline();