in reply to Re: Perl Tk - Add text box on each button event
in thread Perl Tk - Add text box on each button event

But how many time Im going to press button and how many element can i keep it in array is unknown right? Please correct me if Im wrong here.

  • Comment on Re^2: Perl Tk - Add text box on each button event

Replies are listed 'Best First'.
Re^3: Perl Tk - Add text box on each button event
by moritz (Cardinal) on Aug 05, 2011 at 10:03 UTC
    You can keep as many elements in an array as you have memory for storage. So just add one every time the user presses the button. (And maybe remove one if the user presses a different button).