perl_weirdness_vs_strict

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: [ANNOUNCE] Apache::Dispatch-0.03
From: Matt Sergeant <matt@sergeant.org>
Date: Tue, 8 Aug 2000 22:03:44 +0100 (BST)

On Tue, 8 Aug 2000, Roger Espel Llima wrote:

> > @{"${class}::ISA"}
> 
> Yep, that's one weird bit of syntax.  I just needed this recently to
> write a test.pl, and it took quite a bit of testing to get it working. :)
> 
> Incidentally, does anyone know of a way to do this that works under
> strict?  The above requires a "no strict 'refs'" to work.

No, thats a standard thing that is disabled under strict. Of course you'd
only be doing that in some neat hack, so locally disabling strict isn't a
big deal (strict is a lexical pragma, so it only applies in the current
scope).

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu