Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Why does the above not work, but the below does?print (1,2,3)[1];
And don't just say because the second is unambiguous!print [1,2,3]->[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Anonymous Arrays or Anonymous Array References
by kennethk (Abbot) on Mar 03, 2011 at 15:24 UTC | |
|
Re: Anonymous Arrays or Anonymous Array References
by Fletch (Bishop) on Mar 03, 2011 at 15:35 UTC | |
|
Re: Anonymous Arrays or Anonymous Array References
by Anonymous Monk on Mar 03, 2011 at 15:53 UTC | |
by moritz (Cardinal) on Mar 03, 2011 at 16:26 UTC | |
by ikegami (Patriarch) on Mar 03, 2011 at 19:07 UTC |