in reply to odd behaviour with opendir()

You should bear in mind that in $name you only have the names of the directory entries within the directory you opened with opendir(); in order to use that entry you will need to put the the full path back, so you might have something like:

while(my $name = readdir(ODIR)) { if(-d "C:/$name") { print "## inside if \n"; } }

/J\

Replies are listed 'Best First'.
Re^2: odd behaviour with opendir()
by barathbr (Scribe) on Nov 04, 2004 at 10:58 UTC
    Ah!! thanks. Guess should have read the POD before getting here. Thanks a lot ...