in reply to Operation `bool': no method found, argument in overloaded package Vector2D at
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 ACACAATGAATCTTTGACTCGAACAATCGTTCGGTCGCTCCGACGC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Operation `bool': no method found, argument in overloaded package Vector2D at
by rbc (Curate) on Jan 24, 2002 at 08:37 UTC | |
by theorbtwo (Prior) on Jan 24, 2002 at 08:57 UTC | |
by rbc (Curate) on Jan 24, 2002 at 09:25 UTC | |
by theorbtwo (Prior) on Jan 24, 2002 at 10:10 UTC |