I overlooked that this was about conditionally loading the module somewhere between the OP and the post about HTTP::Status.
This was really for my benefit and no one elses.#! perl -slw # This would normally be updated based on some condition in the code. my $condition = 0; # possibly very many lines of code go here # Faking a condition in the code... $condition ||= shift @ARGV; if ($condition) { require HTTP::Status; import HTTP::Status; print RC_FORBIDDEN(); # as merlyn pointed out, we need to give the +parser a clue } __END__ P:\test>test4 0 P:\test>test4 1 403
In reply to Re^5: When C<use Module;> *not* the same as C<require Module; import Module;>?
by Mr. Muskrat
in thread When C<use Module;> *not* the same as C<require Module; import Module;>?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |