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

This commit is contained in:
Corey Putkunz 2014-04-07 10:20:57 +08:00
parent 9b3cbc13be
commit 539b2035d8

View File

@ -371,7 +371,7 @@ sub interpretCommandline
$options{timefmt} =~ s/^\s*//; $options{timefmt} =~ s/^\s*//;
$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; $options{timefmt_Ncols} = $Nfields;
# make sure --xlen is an integer. With a timefmt xlen goes through strptime # make sure --xlen is an integer. With a timefmt xlen goes through strptime