in reply to
A looping question
Have a look at perl's
file test functions
. You can use
-d $foo
to test if a directory exists. That would simplify your problem.
Comment on
Re: A looping question
Download
Code
Replies are listed 'Best First'.
Re^2: A looping question
by
graff
(Chancellor)
on Sep 10, 2010 at 13:50 UTC
In this context, using "-e" would be better, since a given name might exist as a data file (or symbolic link).
[reply]
Re^2: A looping question
by
Anonymous Monk
on Sep 10, 2010 at 12:54 UTC
Thanks, this made the job a whole lot easier
[reply]
In Section
Seekers of Perl Wisdom