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
&find_index($key, \$bigstring);
sub find_index {
my ($key, $rbigstring) = @_;
becomes:
&find_index($key, $bigstring);
sub find_index {
my ($key) = $_[0];
my ($rbigstring) = \$_[1];
This has the added benefit of making the sub call for both c and perl the same.
Thanks for your help
dino
|
|---|