in reply to %ENV in a .pm versus .cgi ?

The question is a bit under-constrained since we have no code to review, but a few possibilities:

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.