in reply to Re^4: Dynamic tab creation/destuction with Tk::Notebook
in thread Dynamic tab creation/destuction with Tk::Notebook
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).
| A reply falls below the community's threshold of quality. You may see it by logging in. |