softcraft has asked for the wisdom of the Perl Monks concerning the following question:
my $file=File::Tail->new(name=>$name, name_changes=>&change, interval +=>1, maxinterval=>5, adjustafter=>7); while (defined($line=$file->read)){ .. } sub change{ my $date = sprintf("%04d%02d%02d", (localtime(time))[5] + 1900,(localt +ime(time))[4]+1, (localtime(time))[3]); return $date; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using File::Tail with name_changes
by FunkyMonk (Bishop) on Jul 30, 2007 at 11:55 UTC | |
by softcraft (Initiate) on Aug 03, 2007 at 00:49 UTC | |
by softcraft (Initiate) on Aug 04, 2007 at 17:49 UTC | |
by FunkyMonk (Bishop) on Aug 04, 2007 at 18:36 UTC | |
by softcraft (Initiate) on Aug 05, 2007 at 02:21 UTC |