From your description, it sounds like you want the find() method. Take a look at Tk::Canvas; in particular, ITEM IDS AND TAGS and WIDGET METHODS. You'd use this something like the following:
for my $tag ($canvas->find(...)) { my @coords = $canvas->coords($tag); # do something with @coords }
-- Ken
In reply to Re: How do I get "coords" of multiple polygons with the same "tag"
by kcott
in thread How do I get "coords" of multiple polygons with the same "tag"
by smh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |