Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recursive glob

Status
Not open for further replies.

naggiman

Technical User
May 7, 2003
36
0
0
GB
How do i achieve a recursive glob of a directory?

Currently i am doing

glob("$dir/* $dir/*/*");

but since there could be 5 levels i dont want to repeat the $dir/*/*/.. 5 times (doesn't look correct to me).

Ta.

N.
 
Just found File::Find built-in which does what i need...

thanks anyhow.

N.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top