There's more than one way to do things | |
PerlMonks |
Re(4): Look for ~*/.netscape/ dirsby yakko (Friar) |
on Apr 15, 2001 at 09:13 UTC ( [id://72643]=note: print w/replies, xml ) | Need Help?? |
strredwolf: (getpwent's worthy, but still, where's the full search?) Basically, what happens is the grep tests each potential dir returned by its 2nd arg (the do block) to see if it's a directory. If it is, the entry ends up in @dirs... It took me ages to figure this out, so it's worthy of a repeat. :o) (Yes, it took 4 reads of perldoc -f grep to finally parse correctly.) --
In Section
Cool Uses for Perl
|
|