in reply to My habitual errors
I opendir/readdir and forget the initial path when I'm using the results.
opendir my $dh, $dir or die $!; my @files = grep { -f } readdir $dh;
Then I wonder why nothing matches. Or I collect the list of files and wonder why they all fail to open. In fact, I recently passed this habitual error on to another wisdom-seeker.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: My habitual errors
by Moron (Curate) on Apr 05, 2007 at 11:41 UTC |