Cool File & Directory Modules File::Tail 40 of 69 : prev | index | next

File::Tail

Examples

  use File::Tail;
  $file=File::Tail->new("/some/log/file");
  while (defined($line=$file->read)) {
    print "$line";
  }
  $file=File::Tail->new(name=>$name, maxinterval=>300, adjustafter=>7);
  while (defined($line=$file->read)) {
    print "$line";
  }

© 2003 Barbie - barbie@missbarbell.co.uk contents http://birmingham.pm.org/