in reply to Executing / Retrieving Output from Command
The capture method replaces the backticks.#!/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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Executing / Retrieving Output from Command
by rpike (Scribe) on Mar 16, 2010 at 13:13 UTC |