Why can't @foo be treated as an implicit list for DWIM purposes?
Because that would make the following code terribly ambiguous:
my @foo = ( 1 .. 5 ); my $list-to-scalar = @foo; my $length-of-array = @foo;
In reply to Re: Function Prototype Context Conversion
by chromatic
in thread Function Prototype Context Conversion
by tadman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |