in reply to Re^3: Dynamic tab creation/destuction with Tk::Notebook
in thread Dynamic tab creation/destuction with Tk::Notebook

This node falls below the community's minimum standard of quality and will not be displayed.
  • Comment on Re^4: Dynamic tab creation/destuction with Tk::Notebook

Replies are listed 'Best First'.
Re^5: Dynamic tab creation/destuction with Tk::Notebook
by GrandFather (Saint) on Jul 16, 2008 at 10:08 UTC

    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
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^5: Dynamic tab creation/destuction with Tk::Notebook
by Anonymous Monk on Jul 16, 2008 at 09:59 UTC
    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.