in reply to This is why Perl is so frustrating
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: This is why logic is so frustrating (was This is why Perl is so frustrating)
by eggmatters (Initiate) on Jul 29, 2009 at 18:17 UTC | |
by SuicideJunkie (Vicar) on Jul 29, 2009 at 20:16 UTC |