in reply to Strange issues with mod_perl and use lib
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strange issues with mod_perl and use lib
by ikegami (Patriarch) on May 13, 2007 at 01:44 UTC | |
by Joost (Canon) on May 17, 2007 at 22:08 UTC | |
by ikegami (Patriarch) on May 18, 2007 at 14:17 UTC | |
|
Re^2: Strange issues with mod_perl and use lib
by Farenji (Novice) on May 12, 2007 at 23:38 UTC |