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?