Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by dino (Sexton)
on Jul 12, 2001 at 17:02 UTC ( [id://96018]=note: print w/replies, xml ) Need Help??


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")

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://96018]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found