in reply to subroutine()[$x];

The syntax for the literal slice operator is:
@result/$result = ( LIST ) [ LIST ];
I know, because I invented it. It's one of the few things in Perl that I can lay claim to.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: subroutine()[$x];
by ihb (Deacon) on Jun 28, 2003 at 09:28 UTC
    Minor nitpick:   qw/ ... / [ LIST ] (without any parenthesis around qw//) works too (as of 5.6 iirc). Not that this is a particulary useful construct. :-)

    ihb
Re: •Re: subroutine()[$x];
by devslashneil (Friar) on Jun 28, 2003 at 08:43 UTC
    Thank you both for your replies, that cleared it up :)

    Neil Archibald - /dev/IT -