So have you learned how to ask good questions yet? Most people put the effort into asking the question in a lucid and concise fashion rather than putting the effort into beating up people who bother to reply to a lazy "Here's a contextless chunk of code. What's the problem?" node.
I see you have written a previous related question with much the same result. Is there a pattern here? Is that a clue?
Perl is environmentally friendly - it saves trees
| [reply] |
you're not using strict, which means $mytab is probably global, which means by the time you click the delete button, the value of $mytab can be anything.
If you call nmap_scan_dialog() 3 times, and it creates 3 tabs,
and then you try to delete any one of the tabs, it will only delete the very last one (unless something else modifies $mytab). | [reply] |