Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Script to change $ENV{PATH}

by TheHobbit (Pilgrim)
on May 08, 2003 at 10:02 UTC ( [id://256493]=note: print w/replies, xml ) Need Help??


in reply to Re: Script to change $ENV{PATH}
in thread Script to change $ENV{PATH}

Argh.... I'm stupid today:) There is a big mistake in my post...

The component order in PATH-like variables is important, sometimes very important, and my munch.pl script mess it up. This version of munch.it don't has this pitfall:

#!/usr/bin/perl -w use strict; my @comp = split /:/,shift; my %saw = (); my @out = (); for (@comp) { push @out,$_ unless $saw{$_}++; } print join ":",@out;

Now I may gonna hide in the monastery cellar...


Leo TheHobbit

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found