in reply to Perl/UNIX .profile problem

Maybe I missed it, but why don't you set the $ENV{SECTRAN_DIR}='/some/dir' in your BEGIN block? Maybe die or populate it with a default if it isn't there?

Cheers