Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re(4): Look for ~*/.netscape/ dirs

by yakko (Friar)
on Apr 15, 2001 at 09:13 UTC ( #72643=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: Look for ~*/.netscape/ dirs
in thread Look for ~*/.netscape/ dirs

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.)

--
Me spell chucker work grate. Need grandma chicken.


Comment on Re(4): Look for ~*/.netscape/ dirs
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://72643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-07-26 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (177 votes), past polls