If you wish to verify that "x" is neither one of two possibilities, then you have to verify that "x" is not "." and "x" is not "..".
so ... what you want isif (($file ne ".") and ($file ne "..")) { ...
Best, beth
In reply to Re: This is why logic is so frustrating (was This is why Perl is so frustrating)
by ELISHEVA
in thread This is why Perl is so frustrating
by eggmatters
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |