Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Search through directoriesby sauoq (Abbot) |
on Jul 31, 2003 at 21:16 UTC ( [id://279798]=note: print w/replies, xml ) | Need Help?? |
If it had worked, how was your single scalar going to hold them all? And how was opendir going to open them all at once? And how were they all going to be associated with a single directory handle? One way or the other, you'll need to loop over them. That said, read perldoc -f glob for an easy way to get that to expand. You'll want to use it something like this:
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|