programming-examples/perl/File/undef file handle.pl
2019-11-15 12:59:38 +01:00

10 lines
143 B
Perl

use IO::File;
$filehandle = new IO::File;
if ($filehandle->open("<hello.txt")) {
print <$filehandle>;
undef $filehandle;
}