On Tue, May 23, 2000 at 12:27:58PM +0800, Gunther Birznieks <[EMAIL PROTECTED]>
wrote:
> replace my $global with use vars qw($global); and your problem should
> disappear.
If you had read my mail you would have known that I do not search for a
workaround. While in this simple example it is possible to create a package
variable instead of the lexical, it is ugly (I mean, the variable is now
visible everywhere). In other circumstances it is very hard to usea package
variable instead, e.g.:
my $v;
sub xxx { $v }
my $v;
sub yyy { $v }
--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|
- global variables and reparsing question (low priority ... Marc Lehmann
- Re: global variables and reparsing question (low ... Gunther Birznieks
- Re: global variables and reparsing question (... Marc Lehmann
- Re: global variables and reparsing question (low ... Autarch
- Re: global variables and reparsing question (... Marc Lehmann
- Re: global variables and reparsing questi... Matt Sergeant
- Re: global variables and reparsing qu... Marc Lehmann
- Re: global variables and reparsing questi... Daniel Jacobowitz
- unsubscribe instructions Fabio Arciniegas A.
- Re: global variables and reparsing question (low ... Perrin Harkins
- Re: global variables and reparsing question (... Marc Lehmann
- Re: global variables and reparsing questi... Perrin Harkins
- Re: global variables and reparsing qu... Doug MacEachern
