It's necessary to explicity force @argValues into a scalar context for this to work, because again the parens from my() create a list context.my(@argValues) = @_; my($argCount) = scalar(@argValues); #or $#argValues + 1
In reply to Re: ( my ($argCount
by Anonymous Monk
in thread ( my ($argCount,@argValues) = @_ ) == Bad Idea?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |