On Tue, Sep 18, 2001 at 04:08:45PM -0700, Randal L. Schwartz wrote:
> Paul> The script I use to do this is
>
> Paul> print join ":", grep !$seen{$_}++, split ":", $ENV{shift}
>
> No it isn't. Unless you are literally looking at $ENV{'shift'}.
>
> You want $ENV{+shift} or $ENV{shift()}.
Bah! You're right of course. The actual script is
print join ":", grep !$seen{$_}++, split ":", $ENV{shift || PATH}
and I don't use strict or warnings.
There's probably a lesson or three in there somewhere.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]