On 2012-03-03 14:18, Paul Johnson wrote:
On Sat, Mar 03, 2012 at 01:51:28PM -0500, Steve Bertrand wrote:
Is there a proper way to do this that someone could point out?
no strict "refs";
foreach my $entry ( keys %{ ref($dog) . "::" })
But why? If you really need class introspection then OK, but for
general programming you should follow the API as documented.
I just figured out the "no strict 'refs'" piece, but thank you :)
I've been writing a program that will perform extra work for diagnostics
upon each method call.
As of now, I need to write a call to an outside function manually into
each method. To automate this so the original methods don't need to be
modified, I'm going to scoop up the code globs, modify them, then
reinstall them back into the class.
Cheers,
Steve
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/