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);

-- 
Aaron Sherman <[EMAIL PROTECTED]>
http://www.ajs.com/~ajs

Reply via email to