Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error message when $/ is readonly #4373

Open
p6rt opened this issue Jul 2, 2015 · 3 comments
Open

error message when $/ is readonly #4373

p6rt opened this issue Jul 2, 2015 · 3 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Jul 2, 2015

Migrated from rt.perl.org#125531 (status was 'new')

Searchable as RT125531$

@p6rt
Copy link
Author

p6rt commented Jul 2, 2015

From @hoelzro

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.

@p6rt
Copy link
Author

p6rt commented Jul 2, 2015

From @hoelzro

test.p6

@p6rt
Copy link
Author

p6rt commented Jul 10, 2015

From @hoelzro

On 2015-07-02 07​:23​:49, rob@​hoelz.ro wrote​:

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

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant