A more concise and (possibly) clearer way to code the test is:
for my $file (@filenames) { next if $file =~ /^\.\.?$/; ... }
note too the early 'exit' from the current loop iteration to avoid a level of nesting and make flow clearer.
In reply to Re: This is why Perl is so frustrating
by GrandFather
in thread This is why Perl is so frustrating
by eggmatters
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |