Jul 27, 2002, 12:27 AM
Post #2 of 8
I don't know of any already existing module to do this. If you don't find it at [url=http://search.cpan.org]CPAN, you'll most probably have to write your own module.
Re: [daveirwin] Perl and tn3270
[In reply to]
Since you want to interface to an already existing DLL, you "just" have to write an XS extension (a Perl module written in XS instead of Perl) for Perl. XS is mostly like C, so if you've got a good background in C, you won't have a lot of trouble using XS. (At least, that's what I experienced.)
At http://www.perldoc.com (or using your perldoc program) you'll find [url=http://www.perldoc.com/perl5.8.0/pod/perl.html#Internals-and-C-Language-Interface]all the information you need about how to hack your own XS module. The [url=http://www.perldoc.com/perl5.8.0/pod/perlxstut.html]Perl XS Tutorial is a good place to start. If you've got a basic module running, just load the DLL and interface to the functions you need.
If you've got more specific questions (or any problems), feel free to ask.
At last with an effort he spoke, and wondered to hear his own words, as if some other will was using his small voice. "I will take the Ring," he said, "though I do not know the way."