in reply to readdir
Share and Enjoyuse File::DosGlob; $fn = 'c:/temp/*'; my @m = File::DosGlob::doglob(1,$fn); for (@m) { push @m, $_.'/*' if -d($_); # if directory add contents to end of Arra +y if (m!^.*/xxxx!) { # if filename starts with xxxx do_something_with($_); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: readdir
by dingus (Friar) on Oct 30, 2002 at 13:46 UTC |