--- "Shishir K. Singh" <[EMAIL PROTECTED]> wrote: > It's an custom function in a program. It has relevance to what I am doing and I >don't have the > heart to translate it in perl right now:) (it's a big function). I was hoping maybe >I could > perhaps adapt it to be called from the perl program. And nope, there is no module >for that in > Perl.
Shishir As mentioned earlier, check out the Inline::C module. I wrote a bit about my experiences embedding C in Perl with this module and you can find that here: http://www.perlmonks.org/index.pl?node_id=135353. I might add that this is my personal favorite post on that site :) You can also check out the Inline mailing list at http://lists.perl.org/showlist.cgi?name=inline. The can give you plenty of help on what you need to do to get started. It's *far* easier to use Inline::C that XS or SWIG, so this is a good choice, if you can make it work for you. Two quick points: make sure your C compiler is the same one that you compiled Perl with (gcc is fine on a Linux box, for example) and have a copy of make. Cheers, Curtis "Ovid" Poe ===== "Ovid" on http://www.perlmonks.org/ Someone asked me how to count to 10 in Perl: push@A,$_ for reverse q.e...q.n.;for(@A){$_=unpack(q|c|,$_);@a=split//; shift@a;shift@a if $a[$[]eq$[;$_=join q||,@a};print $_,$/for reverse @A __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]