Skip Menu |
Report information

Subject: LTA error message when $/ is readonly
Download (untitled) / with headers
text/plain 342b
If one performs a match in a context where $/ is readonly (ex. in a routine that's using $/ as a parameter, or a for loop using $/ as a block parameter, see attached file), one gets the LTA error message "Cannot assign to a readonly variable or a value". Since no explicit assignment is happening, this error message can be a little unclear.
Subject: test.p6
Download test.p6
application/octet-stream 267b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 414b
On 2015-07-02 07:23:49, rob@hoelz.ro wrote: Show quoted text
> If one performs a match in a context where $/ is readonly (ex. in a > routine that's using $/ as a parameter, or a for loop using $/ as a > block parameter, see attached file), one gets the LTA error message > "Cannot assign to a readonly variable or a value". Since no explicit > assignment is happening, this error message can be a little unclear.
See also #125590


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org