in reply to Request for review: OO, inheritance, and a symbol table trick.
That might require a little tweaking, but you'll learn a lot. :) Oh, and if you think you'll eventually inherit from one of these driver classes, you might want to have mk_provides call SUPER() and weed out duplicates. Could come in handy.foreach (keys %{*stash} ) { next if (defined $internal{$_} || /^_/); my $sub = *{$stash->{$_}}{CODE}; next unless defined &$sub; push(@methods,$_); }
|
|---|