salva has asked for the wisdom of the Perl Monks concerning the following question:
The thing is that I find the name Algorithm::RectanglesContainingDot too long, any suggestion for a better one?use Algorithm::RectanglesContainingDot; my $alg = Algorithm::RectanglesContainingDot->new; while(<>) { chomp; my ($rect_name, $x0, $y0, $x1, $y1) = split; $alg->add_rectangle($rect_name, $x0, $y0, $x1, $y1); } my @rect1 = $alg->find_rectangles_containing_dot(23.2, 42.5); my @rect2 = $alg->find_rectangles_containing_dot(-12.4, 5.0);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: module name: Algorithm::RectanglesContainingDot?
by pemungkah (Priest) on Mar 02, 2007 at 19:35 UTC |