Using IO:File open to open a file for read : IO « File « Perl
- Perl
- File
- IO
Using IO:File open to open a file for read
use IO::File;
$filehandle = new IO::File;
$filehandle->open("<hello.txt") or die "Cannot open hello.txt";
print <$filehandle>;
$filehandle->close;
Related examples in the same category