I need to execute a sub-routine from a module everytime I run a perl script. This sub-routine sets the library path depending on the base path of the script.
Easier way would be modify the script and add code to execute this sub-routine. But we have hundreds of scripts to edit which we are not supposed to.
Is there a way to always execute this subroutine whenever I call perl interpreter.
Thanks.
Easier way would be modify the script and add code to execute this sub-routine. But we have hundreds of scripts to edit which we are not supposed to.
Is there a way to always execute this subroutine whenever I call perl interpreter.
Thanks.