in reply to Re: Perl Tk Multiple Notebook Editing and Save
in thread Perl Tk Multiple Notebook Editing and Save

Thanks for pointing them out. I have fixed those errors as you suggested. However in the actual code, which variable are you suggesting to switch to my vars. whenever a tab is raised i want to edit that file and save it. i tried but cant figure out where is the mistake or what am i missing. any help would be appreciated.

  • Comment on Re^2: Perl Tk Multiple Notebook Editing and Save

Replies are listed 'Best First'.
Re^3: Perl Tk Multiple Notebook Editing and Save (life cycle of variables)
by Anonymous Monk on Oct 07, 2014 at 06:57 UTC

    Thanks for pointing them out. I have fixed those errors as you suggested. However ...

    How did you fix them?

    Here is how I fixed them

    I run the program, open two three files, and two three new tabs are added, I hit save on each tab and the correct filename is selected/warned, not just the latest ...

    i tried but cant figure out where is the mistake or what am i missing.

    What I said, subs shouldn't use global variables, they should pass arguments, its Coping with Scoping also known as the spirit of strict also known as the life cycle of variables or memory management