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?
In reply to (localtime)[3] vs. ((localtime)[3]) by Taulmarill
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |