Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How can I find the names of dynamically created subroutines?

by polypompholyx (Chaplain)
on Feb 25, 2007 at 20:39 UTC ( #602036=note: print w/ replies, xml ) Need Help??


in reply to How can I find the names of dynamically created subroutines?

Rather than importing all those constant subs and peeking at the symbol table, you could import the constants into a conventional hash instead:

use Win32::OLE::Const; my $ps = Win32::OLE::Const->Load( 'Adobe Photoshop' ); for my $key ( keys %{ $ps } ) { print "$key => $ps->{ $key }\n"; }


Comment on Re: How can I find the names of dynamically created subroutines?
Download Code
Replies are listed 'Best First'.
Re^2: How can I find the names of dynamically created subroutines?
by Cap'n Steve (Friar) on Feb 25, 2007 at 23:35 UTC
    Well I guess that would be easier. I didn't even notice that before, but I think I'll switch to using that so I don't have to do "no strict 'subs';" anymore.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602036]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-29 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls