in reply to 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

Mmm thanks,

but if $pw is 50M in size then by not passing it as a ref, do the perl api routines convert it to a char * on every call?

dino

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

Replies are listed 'Best First'.
(tye)Re: Passing a very large string by reference to a c library
by tye (Sage) on Jul 13, 2001 at 20:56 UTC

    Perl does "pass by reference" already. No need to complicate things by taking a reference and passing that "by reference". So the above code does no copying and is really the simplest method.

            - tye (but my friends call me "Tye")