in reply to Re^2: readonly access to C-level strings
in thread readonly access to C-level strings
hence no need to be copied.
No, there is a need: For Perl to see them.
The buffers of Perl strings are subject to modification and freeing at any time. It *might* be possible to tell Perl the PV associated with a scalar can't be changed, but
|
|---|