From 539b2035d87b31fe5028a12e18ffdad8f5055215 Mon Sep 17 00:00:00 2001 From: Corey Putkunz Date: Mon, 7 Apr 2014 10:20:57 +0800 Subject: [PATCH] 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