in reply to Re: Perl Tk - how to send a value from a subroutine back to the main program using Button
in thread Perk Tk - how to send a value from a subroutine back to the main program using Button
I am the original poster and have just joined perlmonks. Thanks so much for the advice. I have now gotten it working in the main program.
Just want to be sure I am correctly understanding what is going on. You can't actually pass a value from a subroutine to the main program using a button or other widget. Instead, you create a reference to the value of interest in the main program, send that reference to the subroutine and change the reference value in the subroutine. That changed value can then be accessed from the main program. Correct?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl Tk - how to send a value from a subroutine back to the main program using Button
by kcott (Archbishop) on Jun 11, 2013 at 10:21 UTC | |
by Anonymous Monk on Jun 11, 2013 at 11:00 UTC | |
Re^3: Perk Tk - how to send a value from a subroutine back to the main program using Button
by Anonymous Monk on Jun 10, 2013 at 20:25 UTC | |
by jeri_rl (Initiate) on Jun 11, 2013 at 18:13 UTC |