in reply to Trying to be stricter...
(in your CGI file:)use constant SOME_CONSTANT => 1; sub whatever { 123 } 1;
Since use xyz; is equivalent to BEGIN { require xyz }, this loads the included stuff at the right time.use myIncludeFile ();
updated: used bareword form of use (oops!)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Trying to be stricter...
by stephen (Priest) on Jun 01, 2001 at 05:04 UTC |