Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
how come
does not work (need more ()),print ("a", "b")[1];
but
works fine ????print qw(a, b)[1];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print question
by mreece (Friar) on Aug 16, 2007 at 02:40 UTC | |
|
Re: print question
by jdporter (Paladin) on Aug 16, 2007 at 02:46 UTC | |
|
Re: print question
by Anonymous Monk on Aug 16, 2007 at 02:53 UTC | |
by Anonymous Monk on Aug 16, 2007 at 02:56 UTC | |
by Anonymous Monk on Aug 16, 2007 at 03:03 UTC | |
by liverpole (Monsignor) on Aug 16, 2007 at 03:27 UTC | |
by Anonymous Monk on Aug 16, 2007 at 09:02 UTC | |
by j1n3l0 (Friar) on Aug 16, 2007 at 09:13 UTC | |
|
Re: print question
by Anonymous Monk on Aug 16, 2007 at 02:31 UTC | |
by wind (Priest) on Aug 16, 2007 at 02:38 UTC | |
by jdporter (Paladin) on Aug 16, 2007 at 02:44 UTC | |
by wind (Priest) on Aug 16, 2007 at 03:43 UTC | |
by GrandFather (Saint) on Aug 16, 2007 at 02:45 UTC | |
by Anonymous Monk on Aug 16, 2007 at 05:51 UTC |