Help for this page

Select Code to Download


  1. or download this
    open my $fh, '>', $filename or die "Can't open $filename: $!";
    
  2. or download this
    # not so maintainable, but still used frequently
    select((select($fh), $|++)[0]);
    ...
    # better
    use IO::Handle;
    $fh->autoflush(1);