next if ( "$dir_name/$file" =~ /\/\.$/ or "$dir_name/$file" =~ /\/\.\. +$/ );
simpler and more readable
next if "$dir_name/$file" =~ m{/\.\.?$};
Cheers,
JohnGG
In reply to Re: Traversing directories recursively
by johngg
in thread Traversing directories recursively
by jesuashok
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |