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
In reply to Re^3: readonly access to C-level strings
by ikegami
in thread readonly access to C-level strings
by tfoertsch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |