In any presentation template, perl modules are included by using sayUse Teamsite::config Where is the location of the .pm file cofigured? That is how is config.pm located in the above case?
how can i configure the location though? Say i add a new perl module, how and where do I configure its location ?
Thanks i Know the location of config.pm. how can i configure the location though? Say i add a new perl module, how and where do I configure its location ?
There is a perl module included, sayUse con:util however, The con folder is not in present under the vendor/lib folder. how can this be done?
yes its in the site/lib folder. so these are the only three folders where a new folder and perl module can be added n used with use (foldername)pmfile name) ?
Perl uses @INC array to retrieve the path for the modules.$ iwperl -Vcheck the @INC array value.In addition to that, nobody is preventing you from having your own module directory, by modifying @INC array.Here what you can do:BEGIN { push @INC, "/default/main/path/to/WORKAREA/perl/modules";}The above code would work for PT's too.
use lib "/default/main/path/to/WORKAREA/perl/modules";
iwperl -e "print join \"\n\", @INC"
You can also douse lib "/default/main/path/to/WORKAREA/perl/modules"; which is a bit more "elegant" than the BEGIN block for a static path like that.