in reply to Executing / Retrieving Output from Command

You can use IPC::System::Simple to do what you want:
#!/usr/bin/perl use strict; use warnings; use IPC::System::Simple qw(capture); my $results = capture('gunzip -cf /usr/lib/perl5/5.8.8/CGI.pm'); print $results;
The capture method replaces the backticks.

Replies are listed 'Best First'.
Re^2: Executing / Retrieving Output from Command
by rpike (Scribe) on Mar 16, 2010 at 13:13 UTC
    I'm using Activestate version of Perl and download modules using ppm. When I try loading that module it gives me an error back, 403 forbidden error. Is there another approach to take to accomplish the same thing? Thanks for the message.