rbc has asked for the wisdom of the Perl Monks concerning the following question:
package Vector2D; use strict; use Exporter; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); use overload "-" => \&minus, "+" => \&plus, "*" => \&mult;
The line number mentioned in the error messagesub drawPoly { my @p = @_; #Array of Vector2Ds my $start_point = pop( @p ); while( pop( @p ) ) { $can->create( 'line', $start_point->getx(), $start_point->gety(), $_->getx(), $_->gety()); $start_point = $_; } }
... Oh! Wise Monks why has this pestilence befallen me!while( pop( @p ) ) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Operation `bool': no method found, argument in overloaded package Vector2D at
by theorbtwo (Prior) on Jan 24, 2002 at 06:08 UTC | |
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 |