---------- Forwarded message ----------
From: Matthew Topper <[EMAIL PROTECTED]>
Date: Jul 17, 2007 6:17 AM
Subject: Re: Executing commands through Perl
To: Teresa Thomas <[EMAIL PROTECTED]>

It sounds like Perl might be overkill for this.  Personally, anytime I find
myself using the system call all the time, I seriously think about either
using a module, or just a simple bash script.  Although, Perl certainly can
do it with little trouble, if you just want to get it working.  In any
event, I really don't like the system call, or backticks for that matter.

On 7/16/07, Teresa Thomas <[EMAIL PROTECTED]> wrote:

Hi,

Its my first time (first day actually!) using Perl and I would like some
help in performing some relatively simple operations.

My program outputs two columns of text based data. I want to parse this
information, extract some contents and send the contents (which are
actually program names) to yum, to be installed into a Unix machine.

Currently, I'm extracting the names using "split" command and pushing
the program names into an array. I want to know how to call a command
line utility (like yum or rpm) through Perl. Does this require any
additional libraries?

Advice on any alternate/better way of achieving the same would be great!

Thanks,

Teresa

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/



Reply via email to