in reply to Re^5: What is the difference between $array[1] and @array[1]?
in thread What is the difference between $array[1] and @array[1]?

I do. It makes the one element list an exception (with an exception to the exception if said list has a trailing comma).
@a[1,2,3,4]; # Ok. @a[1,2,3]; # Ok. @a[1,2]; # Ok. @a[1]; # Warning. @a[1,]; # Good boy, you know the secret handshake.
You don't have a problem with that? I think it's a pointless irregularity.

Replies are listed 'Best First'.
Re^7: What is the difference between $array[1] and @array[1]?
by ikegami (Patriarch) on Apr 07, 2009 at 22:30 UTC

    No. Never used it. Never had a use for it. Never seen it used, not even in an example.