This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Lookup overloaded assignment operators when trying to swap the arguments
[perl5.git]
/
lib
/
overload.t
diff --git
a/lib/overload.t
b/lib/overload.t
index
df3a9b8
..
0304714
100644
(file)
--- a/
lib/overload.t
+++ b/
lib/overload.t
@@
-202,7
+202,7
@@
is($b, "89");
is(ref $a, "Oscalar");
is($copies, 1);
-eval q[package Oscalar; use overload ('+=' => sub {$ {$_[0]} += 3*
$_[1]
;
+eval q[package Oscalar; use overload ('+=' => sub {$ {$_[0]} += 3*
"$_[1]"
;
$_[0] } ) ];
$c=new Oscalar; # Cause rehash