May 14, 2003 #1 naggiman Technical User May 7, 2003 36 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.
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.
May 14, 2003 Thread starter #2 naggiman Technical User May 7, 2003 36 GB Just found File::Find built-in which does what i need... thanks anyhow. N. Upvote 0 Downvote
May 14, 2003 #3 missbarbell Programmer Aug 1, 2001 457 GB You might want to also look at File::Find::Rule [1], which provides a neater interface IMO. [1] http://search.cpan.org/author/RCLAMP/File-Find-Rule-0.10/Rule.pm Barbie Leader of Birmingham Perl Mongers http://birmingham.pm.org Upvote 0 Downvote
You might want to also look at File::Find::Rule [1], which provides a neater interface IMO. [1] http://search.cpan.org/author/RCLAMP/File-Find-Rule-0.10/Rule.pm Barbie Leader of Birmingham Perl Mongers http://birmingham.pm.org