in reply to Searching for directory with partial name

First, I am not sure how the code you supplied runs at all.

That said, you could probably find the directory you want sorta like this:

my $n = 12345; my $qdir; for (glob "/some/dir/Quote.${n}*") { if (-d $_) { $qdir = $_; last; } # check that it's a directory } die "Can't find quote directory" unless $qdir;

Replies are listed 'Best First'.
Re^2: Searching for directory with partial name
by jsons (Initiate) on Oct 24, 2007 at 15:09 UTC
    How it runs is a mystery to me, too. I will try the example you gave. Thank you very much.