List Info

Thread: Re: perl "system" command / trouble with path env variable




Re: perl "system" command / trouble with path env variable
user name
2007-10-20 07:00:30
Zefram schreef:

> say "$HOME" instead of "~", because
any shell will
> expand "$HOME" anywhere in a word:

On Windows you could use "%HOMEDRIVE%%HOMEPATH%" 
(can have embedded spaces). There is also USERPROFILE.

C:>perl -wle "print
qq{"$ENV$ENV"}"
"C:Documents and Settingsdruid"

-- 
Affijn, Ruud

"Gewoon is een tijger."

Re: perl "system" command / trouble with path env variable
user name
2007-10-20 07:19:10
On 10/20/07, Dr.Ruud <rvtol+newsisolution.nl> wrote:
> Zefram schreef:
>
> > say "$HOME" instead of "~",
because any shell will
> > expand "$HOME" anywhere in a word:
>
> On Windows you could use
"%HOMEDRIVE%%HOMEPATH%"
> (can have embedded spaces). There is also USERPROFILE.
>
> C:>perl -wle "print
qq{"$ENV$ENV"}"
> "C:Documents and Settingsdruid"

Yes and when stored in the registry they are expanded when a
process
is started for its personal env.

Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )