Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub addfor{ my ($mainwidget,$entryVariable) = @_; my $ex='false'; foreach (@history) { if ($_ eq $entryVariable ) { $mainwidget->messageBox('-icon' => 'error', -type => 'OK', -title => 'Error for input',-message=>"duplicate input"); $ex= 'true'; } } if ($ex eq 'false'){ $widget{'forwardlistbox'}->insert('end', $entryVariable); push (@history, $entryVariable); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: match a word in an words' array
by samtregar (Abbot) on May 02, 2002 at 16:44 UTC | |
|
Re: match a word in an words' array
by vladb (Vicar) on May 02, 2002 at 16:47 UTC | |
by samtregar (Abbot) on May 02, 2002 at 16:52 UTC | |
|
Use a hash
by kwilliams (Sexton) on May 03, 2002 at 07:15 UTC | |
|
Re: match a word in an words' array
by tradez (Pilgrim) on May 02, 2002 at 16:40 UTC | |
by tradez (Pilgrim) on May 02, 2002 at 17:00 UTC | |
by VSarkiss (Monsignor) on May 02, 2002 at 23:12 UTC |