in reply to How to read contents of a file without opening it and print the contents
A good point was brought up in the CB... perhaps this question is being asked because the OP tried to open a file and it failed.
If that is the case, use
open my $fh, '<', $name or die "The open failed because of '$!'\n";
... then fix the problem that is reported.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to read contents of a file without opening it and print the contents
by Anonymous Monk on Jan 28, 2015 at 22:48 UTC | |
by LanX (Saint) on Jan 28, 2015 at 22:53 UTC |