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")In reply to (tye)Re: Passing a very large string by reference to a c library
by tye
in thread Passing a very large string by reference to a c library
by dino
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |