pijush has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I am really annoyed with me regarding Perl-XS code. I have written some XS code which is running fine in one platform (Solaris) but in other platform (Linux) it is giving problem. Again in one windows machine it is running fine and in other windows machine it is giving proble. When I am trying to execute the code with Perl debugger, then I only see the address. I think I have introduced some bug when the code passes from Perl to C and C to Perl. So I am thinking I need a crystal clear idea about the XS. I have read perlxstut and perlguts, but failed to get a clear cut concept.
Can any body please tell me the link where I shall get more details about the Perl-XS?
Thanks in advance.
Regards
-Pijush

Replies are listed 'Best First'.
Re: Help needed for Perl-XS!!
by arden (Curate) on Feb 29, 2004 at 08:50 UTC
    pijush, you really need to give us more details here. What errors are you getting, exactly? How about showing us your code? The best we can do with what little you've given us is to say search on perl-XS.

    Let me give you an analogy of what you've asked for. Let's say I have this music CD which plays fine on my boom-box, but it is giving me problems when I use it in my walkman. Again in one car it works fine, but in another car it is giving me problems. Can you tell me what's wrong and where I can find more details?

    We're a very helpful bunch here, but we aren't omniscient. Ok, maybe a few of the gods are, but that's a small, select list. ;^)

    - - arden.

Re: Help needed for Perl-XS!!
by Roger (Parson) on Feb 29, 2004 at 20:57 UTC
    I bet it's to do with preservation of '\0' characters in your Perl string?

Re: Help needed for Perl-XS!!
by derby (Abbot) on Feb 29, 2004 at 17:01 UTC