Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: subroutine introspection

by JavaFan (Canon)
on Dec 22, 2010 at 16:32 UTC ( #878587=note: print w/replies, xml ) Need Help??


in reply to subroutine introspection

You can get the prototype of a function as:
prototype \&foo;
I leave it up to you to parse the prototype (which has been enhanced in recent Perl versions).

Replies are listed 'Best First'.
Re^2: subroutine introspection
by misterb101 (Sexton) on Dec 22, 2010 at 19:29 UTC
    I have been programming Perl for 15 years... and I never knew this amazingly simple function.... Thanks for enlightening me :D
    --
    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2023-06-04 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (22 votes). Check out past polls.

    Notices?