good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: How to find all the available functions in a file or methods in a module?by LanX (Saint) |
on Nov 11, 2008 at 14:47 UTC ( [id://722868]=note: print w/replies, xml ) | Need Help?? |
There's no way to know whether the subs it finds are methods or not.
well, you can use B::Deparse on the subref and then regex for $self UPDATE: or something like $self and shift or @_ in the same line... OK "self" is only a convention but also human intelligence is relying on spotting $self or alike to recognise a method.
In Section
Seekers of Perl Wisdom
|
|