Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use Tk; sub clicked { system ( 'myscript.pl' ); } my $top = MainWindow->new(); my $button = $top->Button ( -text => "click me", -command => \&clicked )->pack(); ... MainLoop();
???my $button = $top->Button ( -text => "click me", -command => [\&clicked, \$filename] )->pack();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk interface and the rest of the program -- II
by kvale (Monsignor) on Aug 15, 2002 at 20:22 UTC | |
by Anonymous Monk on Aug 15, 2002 at 20:30 UTC | |
by kvale (Monsignor) on Aug 15, 2002 at 21:22 UTC | |
|
Re: Tk interface and the rest of the program -- II
by rbc (Curate) on Aug 15, 2002 at 21:07 UTC |