in reply to Re^2: How to perform a subroutine run in cpan Tk::ExecuteCommand module
in thread How to perform a subroutine run in cpan Tk::ExecuteCommand module
Calling external programs is done by system or qx/backticks.
If you want to call an external program when a button is clicked, put that call to the external program in your callback:
my $cmd= sub { my $commandline= "my/external/program --foo=param1 --bar=param2"; system($commandline) == 0 or warn "Couldn't launch [$commandline]: $!/$?"; };
|
|---|