The simplest way is to use the "system" function.
If you want to capture the output of the program, use backticks:
my $program_output = `programname`;
For a more advanced, but harder to use way to do the same thing, see IPC::Open3.
In reply to Re: running command from within perl script
by amir_e_a
in thread running command from within perl script
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |