Help for this page

Select Code to Download


  1. or download this
    use strict; 
    use warnings;
    ...
    my $flags=fcntl $fh,F_GETFL,O_NONBLOCK || die "fcntl call failed: $!\n
    +";
    print "Flags: $flags\n";
    close $fh || die "can't close write handle to $file_name: $!\n";
    
  2. or download this
    my $flags=fcntl(FH,F_GETFL,$_) || die "fcntl call failed: $!\n";