in reply to UNIX/profile the sequel

he use lib is parsed at compile time and the SECTRAN_DIR variable is created at run time and therefore doesn't exist when the use lib is evaluated?

That's logical. Have you tried a BEGIN block around the environment parser code to steal a little code evaluation time at compile time?

Cheers, Sören