![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: running command from within perl scriptby amir_e_a (Hermit) |
on Oct 11, 2010 at 19:47 UTC ( #864685=note: print w/replies, xml ) | Need Help?? |
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
|
|