Re: Perl API Library by Anonymous Monk on Nov 17, 2011 at 09:18 UTC |
How to add user defined functions to perl API library? Give example. what are the PERL api libraries available?
Add what to what?
| [reply] |
|
add user defined func to perl library?
| [reply] |
|
| [reply] |
|
add user defined func to perl library?
There are about 9000 (or more) things that could be considered perl library, so what do you mean , exactly
| [reply] |
Re: Perl API Library by marto (Chancellor) on Nov 17, 2011 at 09:36 UTC |
| [reply] |
Re: Perl API Library by davido (Bishop) on Nov 17, 2011 at 17:24 UTC |
Are you asking how to create subroutines/functions? perlsub
Are you asking how to create modules or objects? perlmod, perlmodlib, perlobj, perlref, perlreftut, perltoot, perlboot, perltooc, and of course Moose.
Are you asking how to use Perl's internal API (intended for extending and embedding via C/XS)?: perlguts, perlcall, perlxstut, perlapi, Inline::C, Inline, Inline::C-Cookbook, perlembed, perlxs, h2xs (and a large investment of time required)
Could you maybe just give a small example of what you're trying to accomplish? You need to accomplish X, you believe Y is how to get there. But maybe Z is a better approach. Since we don't know what X is, and it's unclear what you mean by Y, we don't know if you're on track or if Z really would be better.
| [reply] |
|
| [reply] |
|
Were the resources pointed to in my previous post not comprehensive enough? ... I don't blame you; the perlapi, perlxs, perlxstut, and perlguts (as well as perlembed) documents cover pretty advanced topics. Are you sure you want to pull back the curtain? The dragons haven't been fed lately, and they're looking both hungry and ill-tempered.
Perhaps you could describe what it is that you're trying to accomplish so we can provide more meaningful help.
| [reply] |
|
| [reply] |
Re: Perl API Library by Your Mother (Canon) on Nov 18, 2011 at 18:13 UTC |
No one has mentioned the CPAN yet. It contains thousands of packages to extend Perl's utility though not (well, mostly not) the API into perl proper. Depending on word choice, that might be what you're really after.
| [reply] |