>>>>> "HvN" == Huub van Niekerk <[email protected]> writes:
>> Try specifying the full path for lpr
>>
>> %whereis lpr
>> lpr: /usr/bin/lpr.cups /usr/bin/lpr /usr/share/man/man1/lpr.1.gz
>>
>> So on my box, /usr/bin/lpr
>>
>> If you look at that article I sent you previously, it gives some
>> explanation for why you need to reset $ENV{"PATH"} (from memory).
>>
HvN> Ok, I've tried various combinations ending up with:
HvN> $PATH{"lpr"} = "/usr/bin/lpr";
HvN> which is the correct path but apparently wrong Perl. How did you specify
HvN> the full path?
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
--
Uri Guttman ------ [email protected] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/