Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://722868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-24 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found