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