Taulmarill has asked for the wisdom of the Perl Monks concerning the following question:
iīve problems in understanding some things perl does with arrays.
my problem is, that print ((localtime)[4]); work well.
my $month = (localtime)[4]; works well too, but print (localtime)[4]; doesnīt work, but i donīt understan why.
could anybody give me a hint so i am able to understand this better?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (localtime)[3] vs. ((localtime)[3])
by BrowserUk (Patriarch) on Sep 23, 2003 at 08:55 UTC | |
by Abigail-II (Bishop) on Sep 23, 2003 at 09:24 UTC | |
by jeffa (Bishop) on Sep 23, 2003 at 12:33 UTC | |
by Abigail-II (Bishop) on Sep 24, 2003 at 08:37 UTC | |
by BUU (Prior) on Sep 24, 2003 at 06:32 UTC |