in reply to running command from within perl script
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 Section
Seekers of Perl Wisdom