E
Eden Cardim
Hello everyone,
I'm developing a system using mod_perl and the Maypole module, and I've
come across an annoying problem. I want to select the first
subdirectory inside another directory that contains files ending with
'.esd'. I've tried the following code but it doesn't work, it selects
empty subdirectories as well:
my($dir) = grep { -d $_ && <$_/*.esd> } glob($self->inputFolder .
'/*');
$self->inputFolder always returns a full path to the base directory
where I want the selection to be done.
This always works on a one-liner, but sometimes it doesn't when used in
mod_perl. Any suggestions on what could be causing this?
Thanks in advance.
I'm developing a system using mod_perl and the Maypole module, and I've
come across an annoying problem. I want to select the first
subdirectory inside another directory that contains files ending with
'.esd'. I've tried the following code but it doesn't work, it selects
empty subdirectories as well:
my($dir) = grep { -d $_ && <$_/*.esd> } glob($self->inputFolder .
'/*');
$self->inputFolder always returns a full path to the base directory
where I want the selection to be done.
This always works on a one-liner, but sometimes it doesn't when used in
mod_perl. Any suggestions on what could be causing this?
Thanks in advance.