in reply to use strict;,$main::, and AUTOLOAD: Why can't we all get along?
First, you say you can replace &{$_ [0]}($_ [1]) with $main::{$_ [0]} ($_ [1]). That's only partially true, it only works if you are in the main package. You are of course still using a soft reference - and the fact that it's not halting compilation may be a bug that will be fix in a next version.
But then you start talking about AUTOLOAD, and there's where I lost it. What's the relation between AUTOLOAD and the bug exp^W^Wtechnique described above? Do you want to call the function in $AUTOLOAD after you loaded it with the technique above? Why? Isn't that why we have &goto $AUTOLOAD?
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use strict;,$main::, and AUTOLOAD: Why can't we all get along?
by hsmyers (Canon) on Jul 18, 2002 at 12:54 UTC | |
|
Re^2: use strict;,$main::, and AUTOLOAD: Why can't we all get along?
by Aristotle (Chancellor) on Jul 18, 2002 at 13:21 UTC |