programming-examples/perl/File/undef file handle.pl

10 lines
143 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
use IO::File;
$filehandle = new IO::File;
if ($filehandle->open("<hello.txt")) {
print <$filehandle>;
undef $filehandle;
}