You have to set up the environment before you start the process. Child processes can't change the environment of their parents. Create a wrapper for the script to set everything up:
#!/bin/sh source ~/.profile perl myscript.pl
In reply to Re: using .profile in perl
by brian_d_foy
in thread using .profile in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |