sub getSongs { my $dir = @_; # INCORRECT: assigns @_ in SCALAR context ... } # end of subroutine definition
try
my ($dir) = @_; # assign @_ in list context
In reply to Re: subroutine array empty
by Anonymous Monk
in thread subroutine array empty
by davidov0009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |