Another quick check on expression context for indexed expressions.
Please sanity-check the return value of want() below:

    @x[0] = want();   # scalar context
    @x[want()] = $_;  # scalar context
    @x[want()] = @_;  # scalar context
    @x[0,] = want();  # list context
    @x[want(),] = $_; # list context
    @x[want(),] = @_; # list context
    $_ = @x[want()];  # scalar context
    @_ = @x[want()];  # list context

Thanks,
/Autrijus/

Attachment: pgpQvZn38vOod.pgp
Description: PGP signature

Reply via email to