in reply to Tie::Filesystem - request for review
To make it nice and portable, consider using File::Spec (or its functional sibling File::Spec::Functions. Using that, you don't have to have the DIR_SEP variable, as you can use catdir. For example:
becomesmy $pathname = $self->{'root'} . $DIR_SEP . $leaf;
Alsomy $pathname = catdir($self->{'root'}, $leaf);
will probably not do what you expect. New testcase ;-)return -e ($self-{'root'} . $DIR_SEP . $leaf);
Arjen
|
---|
In Section
Seekers of Perl Wisdom