add to linux search path in perl

P

Paul Lalli

pc said:
how can i add to the linux search $PATH from within perl?

Do you want to modify the path so that other programs launched from
within the same perl file will see that path? Simply modify Perl's
$ENV{PATH} variable.

Do you want to modify the path so that once your perl script ends, the
path you set in the perl script remains available? You can't. See:
perldoc -q environment

Paul Lalli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top