Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: getting a list of all subclasses of base class x

by stvn (Monsignor)
on Jul 08, 2008 at 20:40 UTC ( #696331=note: print w/ replies, xml ) Need Help??


in reply to Re^2: getting a list of all subclasses of base class x
in thread getting a list of all subclasses of base class x

hehe - you're right, that should be:

BEGIN { my @subclasses = Class::MOP::Class->initialize('x')->subclasses }
... much better now.

-stvn


Comment on Re^3: getting a list of all subclasses of base class x
Download Code
Re^4: getting a list of all subclasses of base class x
by polettix (Vicar) on Jul 09, 2008 at 16:20 UTC
    Still not perfect: @subclasses lives inside the BEGIN block only :)
    my @subclasses; BEGIN { @subclasses = Class::MOP::Class->initialize('x')->subclasses }

    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Io ho capito... ma tu che hai detto?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (14)
As of 2015-07-02 09:16 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 (33 votes), past polls