Executing .profile from perl script

Hi,

How can i execute .profile from a perl script

I need this - i am trying to run perl script from crontab
and it looses the environment variables

Please provide help
Your help is greatly appreciated

Thanks

Consider creating a small "wrapper" script for your perl, and then put that in crontab.
If you spawn a subprocess inside perl, you will not "keep" and environment variables created in the child process.

try something like this:

. /home/user/.profile
perl  /home/user/myperl.pl