You do realise that you aren't passing the array into modify()? You're passing a list. And that list is being aliased.
And prior to the mostly pointless, blanket constanisation of the Perl sources, the (incorrect) attribution of a null C pointer to a scalar would not have been spuriously attributed to a "read-only value".
Two mistakes collide here:
Upshot: p5p have buggered Perl5 in their attempts to 'be correct'.
In reply to Re^5: What does my @x= (undef)x7; do?
by BrowserUk
in thread What does my @x= (undef)x7; do?
by gepebril69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |