Dynamic package name

2001-03-09 Thread Andrew Maltsev
Hi! Strictly speaking this has nothing to do with mod_perl, I just got into that problem writing mod_perl application. I want some module to decide its namespace at loading time. Obviously it can be solved with one big eval over entire module text, but this is not an option in my case - the code

Re: [OT] Dynamic package name

2001-03-09 Thread Andrew Ho
Andrew, AMIs there any way to tell perl that from now on the namespace is AM$namespace? `package' does not accept scalars, and its scope is AMeval block, so if I use eval to pass scalar to "package" I have to AMinclude entire program text into that eval as well. You can kind of do this via XS,