P is for Practical | |
PerlMonks |
Re^7: Perl tk - How to integrate external scriptsby chessgui (Scribe) |
on Jan 30, 2012 at 13:45 UTC ( [id://950771]=note: print w/replies, xml ) | Need Help?? |
Make $open a global variable and use it instead of 'datafile.name':
Variables are global by default - if you don't understand this just take care never to declare it with 'my' ( don't write "my $open='foo';" just "$open='foo';" ). Set the value for $open with your file selection widget and the bind will call the get_statistics routine with the appropriate value ('value of the $open global variable at the time of the button click') as an argument for you.
In Section
Seekers of Perl Wisdom
|
|