in reply to list all subs in a package
I found two bugs. Given
{ package TestA; sub foo {} sub bar; sub baz() { time } sub moo {} } { package TestB; our @ISA = 'TestA'; our $bar = 1; } use Data::Dumper; print Dumper get_coderefs_href $_ for qw( TestA TestB );
bar shows that stubs are listed. That's fine — I'd even say it's a good thing — but it's worth documenting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: list all subs in a package
by sflitman (Hermit) on Jan 02, 2009 at 02:04 UTC | |
by ikegami (Patriarch) on Jan 02, 2009 at 02:56 UTC | |
by sflitman (Hermit) on Jan 02, 2009 at 09:55 UTC | |
by ikegami (Patriarch) on Jan 02, 2009 at 10:26 UTC |