Skip to content

Commit

Permalink
make [split] always return a list.
Browse files Browse the repository at this point in the history
(shouldn't be necessary but definitely helps)
  • Loading branch information
coke committed Apr 13, 2010
1 parent 3fa5cd7 commit 07b1f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Partcl/commands/main.pm
Expand Up @@ -754,7 +754,7 @@ our sub split(*@args) {
my $splitChars := @args[1] // " \r\n\t";

if $string eq '' {
return '';
return list();
}

if $splitChars eq '' {
Expand Down

0 comments on commit 07b1f3f

Please sign in to comment.