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

File::Tail

Examples - Tie Interface

  use File::Tail;
  my $ref=tie *FH,"File::Tail",(name=>$name);
  while (<FH>) {
    print "$_";
  }

Note that the above script will never exit. If there is nothing being written to the file, it will simply block


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