Skip Menu |

This queue is for tickets about the Tk-MatchEntry CPAN distribution.

Report information
The Basics
Id: 14054
Status: resolved
Priority: 0/
Queue: Tk-MatchEntry

People
Owner: Nobody in particular
Requestors: peter.jaquiery [...] ihug.co.nz
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.4
Fixed in: 0.5



Subject: documentation error
SYNOPSIS use Tk::MatchEntry; $match_entry = $top->MatchEntry(-textvariable => \$var1, -choices => @choices); -choices => @choices should be -choices => \@choices
From: peter [...] adi.co.nz
[Peter Jaquiery - Mon Aug 8 08:26:42 2005]: Actually the example code works, but is seriously flawed. The pertinent fragment is: my @choices = [ qw/one one.green one.blue one.yellow two.blue two.green two.cyan three.red three.white three.yellow/ ]; $mw->Button->pack(-side => 'left'); my $me = $mw->MatchEntry( -choices => @choices, which assigns an anonymous array to element 0 of @choices Better code would be: my @choices = ( qw/one one.green one.blue one.yellow two.blue two.green two.cyan three.red three.white three.yellow/ ); $mw->Button->pack(-side => 'left'); my $me = $mw->MatchEntry( -choices => \@choices,
fixed with v0.5