in reply to (DUP) Re: How to find all the available functions in a file or methods in a module?
in thread How to find all the available functions in a file or methods in a module?

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.

  • Comment on Re^2: How to find all the available functions in a file or methods in a module?