Skip to content

Commit c0f760b

Browse files
committed
Remove leading comma in whole() sub
This allows the sub to compile and be called.
1 parent 8271fe9 commit c0f760b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/10subroutines/10-01arguments.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ (@names, %flags)
3333
}
3434
my @stuff = ('array', 'elements');
3535
my %flags = (hash => 'elements', are => 'pairs');
36-
whole([,] @stuff, %flags);
36+
whole(@stuff, %flags);
3737

3838
sub optional ($required, $optional?) {
3939
my $second_arg = $optional // 'Told you it was optional!';

0 commit comments

Comments
 (0)