[feedgnuplot] 01/06: Fix for "Use of implicit split to @_ is deprecated at /d/home/coreyp/bin/feedgnuplot line 377"

Dima Kogan dima at secretsauce.net
Wed Aug 6 22:23:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

dkogan-guest pushed a commit to branch debian
in repository feedgnuplot.

commit 539b2035d87b31fe5028a12e18ffdad8f5055215
Author: Corey Putkunz <coreyp at dugeo.com>
Date:   Mon Apr 7 10:20:57 2014 +0800

    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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feedgnuplot.git



More information about the debian-science-commits mailing list