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
It sounds like you are looking for the system function. You can read
about it by typing
perldoc -f system
However, it sounds like you could use something like the RPM4* module instead.
* http://search.cpan.org/~nanardon/RPM4-0.20/lib/RPM4.pm
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/