but the following does NOT work:use() is executed at compile time, while assignment is executed at runtime. That means that "use $path;" is run when $path is still undefined.my $path = "/www/domain/cgi-bin"; use lib $path;
Try this:
See use.BEGIN { my $path = "/www/domain/cgi-bin"; use lib $path; }
In reply to Re: Strange issues with mod_perl and use lib
by Joost
in thread Strange issues with mod_perl and use lib
by Farenji
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |