in reply to Re: Portable method for ignoring psuedo-files/psuedo-dirs?
in thread Portable method for ignoring psuedo-files/psuedo-dirs?

There's a curdir() which will do what you want.

My test code:

use File::Spec; my $f = 'File::Spec'; print $f->curdir, "\n"; print $f->updir, "\n";

My output:

$ perl ./test_file_spec . .. $

There's also some notes on this in the perlport manpage ("Files and Filesystems" section).

PN5