Help for this page

Select Code to Download


  1. or download this
    sysopen my $fh,$file,O_WRONLY|O_CREAT|O_NONBLOCK|O_NOCTTY
      or croak("Can't create $file : $!");
    
  2. or download this
    my $SYSOPEN_MODE = O_WRONLY|O_CREAT;
    if(exists $Fcntl::{'O_NONBLOCK'}){
    ...
        $SYSOPEN_MODE |= &{ $Fcntl::{'O_NOCTTY'} };
    }