diff options
author | Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | 2015-10-06 23:13:31 +0100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2015-10-12 15:21:45 +1100 |
commit | 0f948285b1d20fc918c76b133dd5bf40d0fa1221 (patch) | |
tree | da0aebfee340547ad496eddc36c25b5725b1a387 /pod/perldiag.pod | |
parent | 4a21999a595cf89f78d57aa5b3fdf3fbfa638fb1 (diff) | |
download | perl-0f948285b1d20fc918c76b133dd5bf40d0fa1221.tar.gz |
Include the name of the non-lvalue sub in error message
This makes the cause of the error more obvious if you accidentally call
a non-lvalue sub in the final position of an lvalue one.
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index db218610fa..d40b09351f 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -1108,7 +1108,7 @@ to change it, such as with an auto-increment. (P) The internal routine that does assignment to a substr() was handed a NULL. -=item Can't modify non-lvalue subroutine call +=item Can't modify non-lvalue subroutine call of &%s (F) Subroutines meant to be used in lvalue context should be declared as such. See L<perlsub/"Lvalue subroutines">. |