in reply to The way I met this (already not) new 2005 year
instead ofmy $nyear = (split '\s', localtime)[4]+1;
for getting the year. Notwithstanding, it had a positive effect: it made me learn that localtime can be meaningfully invoked in scalar context too.my $nyear = (localtime)[5] + 1;
Flavio
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The way I met this (already not) new 2005 year
by sh1tn (Priest) on Mar 20, 2005 at 18:40 UTC |