Help for this page

Select Code to Download


  1. or download this
    sub openFile {
            my ($filename, $mode) = @_;
    ...
            }
            return 0;
    }
    
  2. or download this
    my $logfile = openFile("application.log",">>");
    
  3. or download this
    foreach my $filehandle (@openedFileHandles) {
            if (fileno($filehandle)) {
                    $filehandle->close();
            }
    }