http://qs321.pair.com?node_id=96085


in reply to Re: Re: Re: Passing a very large string by reference to a c library
in thread Passing a very large string by reference to a c library

And finally,

from the perlapi manpage:

 SvPV    Returns a pointer to the string in the SV, or a
         stringified form of the SV if the SV does not con-
         tain a string.  Handles 'get' magic.
 
         char*   SvPV(SV* sv, STRLEN len)

so that should do it

dino

  • Comment on Re: Re: Re: Re: Passing a very large string by reference to a c library