bluegroper
Technical User
Hi forum
I have simple code snippet as below.
It works, but I'd like to learn a better way to write the 2 next statements on 1 line.
Something like
next if ($filename eq ".") OR if ($filename eq "..");
(thinks I canna find the right places for brackets)
or
next if ($filename eq "[.|..]");
Much TIA's
I have simple code snippet as below.
It works, but I'd like to learn a better way to write the 2 next statements on 1 line.
Something like
next if ($filename eq ".") OR if ($filename eq "..");
(thinks I canna find the right places for brackets)
or
next if ($filename eq "[.|..]");
Much TIA's
Code:
while ($filename = readdir TEMP) {
next if ($filename eq ".");
next if ($filename eq "..");
... process something here ...
}