Help for this page

Select Code to Download


  1. or download this
    open LOG, '>', 'log.txt' or die $!;
    
  2. or download this
    use IO::Handle qw( );
    open LOG, '>', 'log.txt' or die $!;
    LOG->autoflush(1);
    
  3. or download this
    use Fcntl qw( :seek );
    seek(LOG, 0, SEEK_END);