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.
In reply to Re: My habitual errors
by kyle
in thread My habitual errors
by Moron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |