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