On Thu, 2 Nov 2000, Michael wrote:
> #handler
> package MyHandler;
>
> use Module qw(sub1 sub2);
> use Apache;
> use vars qw(@ISA)
> @ISA = qw (Module Apache);
>
> calling sub1 from apache
> using THIS handler named "MyHandler" results in Module::sub1
> identifing the "caller" as Apache.
Okay, I'll bite... Why do you want to change the caller? I mean, Apache
really is the caller if this is being invoked directly in response to a
request.
Your AUTOLOAD trick will effectively change the caller, but it will also
slow things down. Also, exporting subs chews up some memory and should be
avoided if possible. Using fully-qualified names is the simplest way
around it.
- Perrin