Hi,
I am inserting a user defined perl module in the workflow perl scripts.
This is how I do it:
$iwhome = TeamSite::Config::iwgethome();
BEGIN{push
@INC, '$iwhome\\local\custom';}
use modules::HRDC_DCR_Utilities;
use modules::HRDC_Utilities;
The BEGIN block does not work since it is evaluated at compile time.
I can change it to
BEGIN{push
@INC, 'd:\\iw-home\\local\custom';}
but I don't want to do this since this script will depend on the D drive for the path, and not the TeamSite's home ($iwhome) directory.
Any idea how this could be solved.
Thanks.