On 10 Sep 2002, Aaron Sherman wrote:

> This short bit of code does a good job of pointing out two bugs. One is
> that the C<*@y> sucks up ALL of the arguments, not just C<@_[1..@_]>,
> and also that C<"\$x"> prints a lone backslash.
>
> Please correct me if I've misused these operators. Thanks!
>
>     sub abc($x,*@y) {
>             die "Why is \$x undefined" unless defined $x;
>     }
>     abc(1,2,3);

Heh.  It appears that splat arguments have only been tested with "@_".
I'll fix this tonight.  It should be easier than the return values thing.

/s

Reply via email to