One reason is because when using Registry, your script isn't in main::
anymore. This bit me once in porting CGIs to mod_perl.
Chris
On Wed, Apr 25, 2001 at 04:30:02PM +0800, Stas Bekman wrote:
>
> also can you please explain why:
>
> =head2 Symbol tables
>
> ...
> stay away from main::
--
On Wed, 25 Apr 2001, Stas Bekman wrote:
> Exporter
> To void inherting B
> ...
> --
>
> Does it mean: Avoid using Exporter to void...?
that was a typo, s/void/avoid/
> also shouldn't:
>
> *import = \&Exporter::import;
> be:
> local *import = \&Exporter::import;
goodness no. fil
Doug, I have a few questions regarding modperl_style.pod
=head2 Inheritance
=over 4
=item Avoid inherting from certain modules
Exporter
To void inherting B
...
--
Does it mean: Avoid using Exporter to void...?
also shouldn't:
*import = \&Exporter::import;
be:
loca
On Wed, 17 Jan 2001, Ask Bjoern Hansen wrote:
> On 2 Jan 2001 [EMAIL PROTECTED] wrote:
>
> > =item Avoid inherting from certain modules
> >
> > Exporter
> > To void inherting B
> >
> >instead of this:
> >
> > @MyClass::ISA = qw(Exporter);
> >
> >use this:
> >
On 2 Jan 2001 [EMAIL PROTECTED] wrote:
> =item Avoid inherting from certain modules
>
> Exporter
> To void inherting B
>
>instead of this:
>
> @MyClass::ISA = qw(Exporter);
>
>use this:
>
> *import = \&Exporter::import;
Why? To get less obscure error mess