>> there is no %PATH variable in perl. if you read the post about
>> clearing
>> the PATH in the ENVIRONMENT, you would just set that value in the
>> %ENV
>> hash.
>>
>> uri
>
> If you mean like this, it doesn't work.
>
> $ENV{"lpr"} = "/usr/bin/lpr";
>
> Nor do
>
> $ENV{"/usr/bin/lpr"} = "lpr";
> $ENV{"PATH"} = "/usr/bin/lpr";
>
> Thanks for helping out.
>



Forget about the $ENV{....}

In your command, where you have     lpr

replace that with           /usr/bin/lpr

You will generally find that all commands need the full path

--



Owen


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to