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