in reply to Multiple tag syntax

To specify multiple tags you need to use an array ref:

my $tags = [ "arc", "tall" ]; ... $widget->configure(-tags => $tags);
Also, see the example in the perlTk documentation Canvases and tags.

In this example, $tags is a scalar, so you can pass it to a subroutine like you would pass a string:

$tags = [ "arc", "tall" ]; build_widget($frame, $tags); ... sub build_widget { my ($frame, $tags) = @_; ... $widget->configure(-tags => $tags); }

Replies are listed 'Best First'.
Re^2: Multiple tag syntax
by merrymonk (Hermit) on Jun 06, 2008 at 15:22 UTC
    Thanks - that sorted it fine!!