You've going to kick yourself on this one.
while(pop(@p)) uses your Vector2D in a boolean context, so it's trying to find a "bool" method to find the boolean value of a Vector2D (IE if it is true or not). If you read the "MAGIC AUTOGENERATION" section of the overload manpage, you'll see that "bool" isn't mentioned there, meaning it can't be autogenerated. (Which makes sense -- all references are natively (or is that nievely?) true.)
Add a "bool" => \&bool line to your "use overload". (And write the coorosponding method, of course.)
TACCTGTTTGAGTGTAACAATCATTCGCTCGGTGTATCCATCTTTG ACACAATGAATCTTTGACTCGAACAATCGTTCGGTCGCTCCGACGCIn reply to Re: Operation `bool': no method found, argument in overloaded package Vector2D at
by theorbtwo
in thread Operation `bool': no method found, argument in overloaded package Vector2D at
by rbc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |