Skip to content

Commit

Permalink
split() was creating null tokens if the string contained leading whit…
Browse files Browse the repository at this point in the history
…espace.

Using the new special syntax suppresses them.
  • Loading branch information
Dennis Boone committed Jan 7, 2010
1 parent 1723db8 commit d896670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MrShell.pm
Expand Up @@ -38,7 +38,7 @@ sub _process_space_delimited {
$that = $rem;

} else {
my ($tok, $rem) = split m/\s+/, $that, 2;
my ($tok, $rem) = split ' ', $that, 2;

push @output, $tok;
$that = $rem;
Expand Down

0 comments on commit d896670

Please sign in to comment.