Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2016-12-03 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.