HOWTO Build a .pm File

HOWTO Build a .pm File

am 16.08.2008 23:19:47 von Phillip Richcreek

--===============0416008825==
Content-Type: multipart/alternative;
boundary="----=_Part_133087_1811238.1218921587347"

------=_Part_133087_1811238.1218921587347
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

About a week ago, I posted a request for guidance in building a .pm file to
do some testing with an existing CPAN module, mail::transport::dbx. Having
received no response, I'm thinking I may have been too verbose. TOO MUCH
INFORMATION.

So, more simply put...

I want to test a package that will consist of three C programs and a perl
program that makes use of the C code. Can someone point me to documentation
that explains the steps needed to buld a .pm file from those components?
(I've compiled the C programs and created object modules.)

TIA,

Phil

------=_Part_133087_1811238.1218921587347
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

About a week ago, I posted a request for guidance in building a .pm file to
do some testing with an existing CPAN module, mail::transport::dbx. Having
received no response, I'm thinking I may have been too verbose. TOO MUCH

INFORMATION.


So, more simply put...

I want to test a package that will consist of three C programs and a perl
program that makes use of the C code. Can someone point me to documentation
that explains the steps needed to buld a .pm file from those components?

(I've compiled the C programs and created object modules.)

TIA,

Phil

 


------=_Part_133087_1811238.1218921587347--

--===============0416008825==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0416008825==--

Re: HOWTO Build a .pm File

am 18.08.2008 10:42:40 von Gisle Aas

On Aug 16, 2008, at 23:19, Phillip Richcreek wrote:

> About a week ago, I posted a request for guidance in building a .pm
> file to
> do some testing with an existing CPAN module, mail::transport::dbx.
> Having
> received no response, I'm thinking I may have been too verbose. TOO
> MUCH
> INFORMATION.
>
> So, more simply put...
>
> I want to test a package that will consist of three C programs and
> a perl
> program that makes use of the C code. Can someone point me to
> documentation
> that explains the steps needed to buld a .pm file from those
> components?
> (I've compiled the C programs and created object modules.)

I did not read your original request, but it's still a bit hard to
answer your question because it's not clear what you want to do from
your description. Perl can interface to C programs by invoking them
using the system(), readpipe() or open() functions. Read the
'perlipc' document for more information about this style of interaction.

Perl can also interface directly to C libraries with some work.
Usually this is done by describing the mapping between perl and C
using the XS language described in the 'perlxs' document. You find a
more gentle introduction in 'perlxstut'.

Regards,
Gisle

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs