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
I want to process the token stream generated from PPI. So I want to enumerate and store each of its token types.
Maybe you can enumerate them lazily as you encounter them? Something along these lines:
use Memoize qw(memoize); memoize qw(number_for_class); sub number_for_class { state $i; return ++$i };
|
|---|