To flesh out AnonyMonk's reply, maintain a hash of items inserted and add a little logic to your double-click call-back.
... my %inserted = map { $_ => 0 } @list; ... $txt_scroll->insert( 'end', "SELECTED IP : $current_ip\n" ) unless $inserted{ $current_ip } ++; ...
I hope this is helpful.
Cheers,
JohnGG
In reply to Re: How to avoid the duplicate selection in perl tk
by johngg
in thread How to avoid the duplicate selection in perl tk
by vr786
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |