bsdz has asked for the wisdom of the Perl Monks concerning the following question:
for example works, but a line like this will return a syntax error: -print "".(localtime)[2]."\n"
Is there documentation on this notation and/or why this syntax is wrong?print (localtime)[2]."\n"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print list element from function syntax
by Hofmator (Curate) on Jun 25, 2004 at 13:05 UTC | |
|
Re: print list element from function syntax
by japhy (Canon) on Jun 25, 2004 at 12:57 UTC | |
|
Re: print list element from function syntax
by PodMaster (Abbot) on Jun 25, 2004 at 12:56 UTC | |
|
Re: print list element from function syntax
by Anonymous Monk on Jun 25, 2004 at 12:50 UTC | |
by bsdz (Friar) on Jun 25, 2004 at 12:54 UTC |