Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 pondering the Monastery: (9)
As of 2014-12-25 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls