I have a number of perl scripts which inturn contains a number of open
functions.now, i need to set the environtment variable,according to the environment variable whether it is set or not.I have to open the file in
encoding layer if environment variable is set.If not set , i have to do the normal way.
It is time consuming to change in each and every file.
how to do this, without modifying the previous scripts.