opendir mydir/??/??/??

A

avilella

Hi all,

I have a group of dirs and subdirs that look like mydir/00/00/00,
mydir/00/00/01 ... mydir 11/55/99.

In the same way I can do an "ls mydir/??/??/??/*.ext", is there a way
that I can do an opendir like:

opendir(DIR, "mydir/??/??/??")

Cheers,

Albert.
 
J

John W. Krahn

I have a group of dirs and subdirs that look like mydir/00/00/00,
mydir/00/00/01 ... mydir 11/55/99.

In the same way I can do an "ls mydir/??/??/??/*.ext", is there a way
that I can do an opendir like:

opendir(DIR, "mydir/??/??/??")

my @files = glob "mydir/??/??/??/*.ext";

perldoc -f glob
perldoc File::Glob



John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top