in reply to How can I find the names of dynamically created subroutines?
I'm not saying it's necessarily the best idea in the world, but you can in fact find that information (maybe) like this:
package Example::Package; use strict; no strict 'refs'; use Data::Dumper; $Data::Dumper::Indent = 1; $Data::Dumper::Sortkeys = + 1; sub wuzzle { print "supz\n"; } my $symbol_table = *{"main::Example::Package::"}{HASH}; print "", Dumper($symbol_table), "\n"; $symbol_table->{wuzzle}->();
I'm surprised it isn't documented in the module Win32::OLE actually. I'm not at all familiar with these packages (linux fan), but does Win32::OLE::Const help somehow?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I find the names of dynamically created subroutines?
by blazar (Canon) on Feb 25, 2007 at 14:05 UTC | |
|
Re^2: How can I find the names of dynamically created subroutines?
by Cap'n Steve (Friar) on Feb 25, 2007 at 04:05 UTC |