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]: $!/$?"; };
In reply to Re^3: How to perform a subroutine run in cpan Tk::ExecuteCommand module
by Corion
in thread How to perform a subroutine run in cpan Tk::ExecuteCommand module
by Janish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |