You need either:
or to use the non-OO File::Spec::Functions:use File::Spec; next if $file eq File::Spec::->curdir() or $file eq File::Spec::->updi +r();
use File::Spec::Functions qw/curdir updir/; next if $file eq curdir() or $file eq updir();
In reply to Re: Re: reading files and directories
by ysth
in thread reading files and directories
by ctp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |