in reply to proxying overloads: returns seem to lie
I took a look at the code, and added
to the code. When I ran the code, I gotprint "*** ($capsule) *** Result: ($result)\n";
which seems to mean that the eq has failed. However, when I replace eq with =~, the code appears to work as you expected; however, then it appears to bypass the nomethod overload.# capsule overload eval-ing : ${$_[0]} eq $_[1] # capsule overload returning: 1 *** (It's a widget!) *** Result: () # result of comparison: false
*** (It's a widget!) *** Result: (1) # result of comparison: true # result of comparison: false
Likewise with substituting !~ for ne.
Wish I could be of more help,
|
|---|