use strict; use Time::Local; $|++; my $nyear = (split '\s', localtime)[5]+1; my @ndate = (0, 0, 0, 0+1, 0, $nyear); my $ndate = timelocal(@ndate); while((my $time = $ndate - time) > 0 and sleep 1){ print "$time seconds left untill $nyear ... $/"; } print "$/ Happy New $nyear! $/"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: The way I met this (already not) new 2005 year
by polettix (Vicar) on Mar 19, 2005 at 08:53 UTC | |
by sh1tn (Priest) on Mar 20, 2005 at 18:40 UTC |