Yes and no.

No ...Perl is so dynamic that you will hardly automatically parse all subs without an AI which is more clever than you.

But Yes ... you might built a solution which fits in 80-90 percent of the cases.

For instance is it allowed to dynamically proxy subs with AUTOLOAD and the way args are read from @_ can vary in many ways.

In the case of OO classes you'd also need to check the inheritance tree in @ISA.

And I don't even know which backdoors XS modules are allowed to use.

Saying so,after using a modul it's possible to dynamically introspect its Symbol Table Hash aka STASH.

And it's possible to list all lines involving the @_ array.

Something standard like my ($self,$name) = @_ might be easy to decipher.

But this will only show you the internal variable name and not the description of an argument $name.

Hence this would only be a semi automatic help often requiring human intervention.

But in your case, no way

From my experience with Image Magick this won't help much though, because the underlying C library is pretty inconsistent and Perl might only provide a thin layer.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice


In reply to Re: Can a Perl module "inspect" itself and provide details about methods and parameters? by LanX
in thread Can a Perl module "inspect" itself and provide details about methods and parameters? by Br'er Rabbit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.