in reply to using .profile in perl

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
--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review