Hi, Paul, :)

On Tue, 18 Sep 2001, Paul Johnson wrote:
> On Mon, Sep 17, 2001 at 03:25:20PM -0700, Jason Tiller wrote:

> > I'm trying to write a short script to remove duplicate entries in
> > my PATH variable.

> The script I use to do this is
>
>   print join ":", grep !$seen{$_}++, split ":", $ENV{shift}

Ah, *smooth*.  Gotta get comfortable with those 'grep' and 'map'
functions...

Thanks for the tip!  That's great stuff.

---Jason Tiller
[EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to