in reply to executing commands and getting output

As already mentioned, backtics (`) will do the basics. If you want to do fancy stuff with stdin/stdout/stderr, etc. take a look at IPC::Run which provides some great mechanisms for perl interactions with background processes.
  • Comment on Re: executing commands and getting output