(note the + before the opening bracet, to prevent print from thinking it's his. When assigning to a variable, you say:print +(localtime)[5]
just as you state in your own post :)my $year = (localtime)[5]
Paul
In reply to Re^3: Looking for syntactic shortcut
by rev_1318
in thread Looking for syntactic shortcut
by mrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |