in reply to Re^5: greater efficiency required (ls, glob, or readdir?)
in thread greater efficiency required (ls, glob, or readdir?)
Oh, if you don't like the died message, replace it with
A few character strokes more, but still a very short line.exit 1 if $?;
And no, the program won't be silent. "cat" is perfectly able to tell the user why it can't read the file.
In Section
Seekers of Perl Wisdom