Problems? Is your data what you think it is? | |
PerlMonks |
Re: running programsby arturo (Vicar) |
on Aug 28, 2001 at 23:08 UTC ( [id://108554]=note: print w/replies, xml ) | Need Help?? |
Take a look at the man pages for system and backticks `` Backticks are useful if you want to capture the output of the external program.
The or die part is important -- it will be called if something goes wrong with the external program. An alternative to backticks is system, just system "command", which is more useful when you don't need to capture the output and/or when you want more security (it's dangerous to put user input into any call that's going to get executed on your system). HTH!
In Section
Seekers of Perl Wisdom
|
|