in reply to Re^2: 'use' falls out of scope at runtime
in thread 'use' falls out of scope at runtime
I can see three possibilities.
You don't actually have a module.
As I define a module, it must have its own namespace and placed there using a package statement.
The runs are in different Apache processes.
Apache has many children to handle requests. Loading a module in one won't load it in the others (unless you load it in the mod_perl startup script).
The module is loaded, but the symbols haven't been imported into the current namespace.
use Some::Such; has two effects: require and import. A module only needs to be required once. (Subsequent calls to require are no-ops.) But you need to call import from each namespace into which you want to import.
Apache also restarts its children from time to time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 'use' falls out of scope at runtime
by arpx (Acolyte) on Apr 23, 2009 at 14:50 UTC | |
by Corion (Patriarch) on Apr 23, 2009 at 14:55 UTC | |
by arpx (Acolyte) on Apr 23, 2009 at 15:32 UTC | |
by Corion (Patriarch) on Apr 23, 2009 at 15:41 UTC | |
by ikegami (Patriarch) on Apr 23, 2009 at 15:48 UTC |