Pablo Cusnir wrote:
> Hi,
> 
> Is there a way using Perl to add to the environment variable PATH a
> new path, and that addition will be valid after the script is ran and
> not only for the script's scope.  
> I'm working in cshell in Solaris 5.8
> The regular way to do it in the shell is:

Yours is a Frequently Asked Question.  As such,
it is answered in the perlfaq documents that come
bundled with every distribution of Perl.  They can
be browsed and searched with the perldoc program.

Have a look at "perldoc -q environment"

This will direct you to the Unix FAQ, for example here:

http://www.faqs.org/faqs/unix-faq/faq/part2/
(Question 2.8)

I cannot find the supposedly "much more detailed answer"
in ftp.wg.omron.co.jp/pub/unix-faq/docs/script-vs-env

In short, this should be impossible, but can be done
through trickery.

-- 
Helgi Briem T?knideild  Landss?minn EHF
[EMAIL PROTECTED]
S?mi: 550-7466 GSM: 896-7466

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to