Coplan has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a perl script that requires me to actually unzip a file to check its contents. If at all possible, I'd like to prevent the output from displaying, as I intend to parse the output. Here's my line of code (all variables have been declared, and what-not:
my $unzip_output = system("unzip -l $filename");
Thanks, --Coplan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: preventing a system call from displaying output
by arhuman (Vicar) on Feb 16, 2001 at 12:43 UTC | |
|
Re: preventing a system call from displaying output
by extremely (Priest) on Feb 16, 2001 at 12:47 UTC | |
by bikeNomad (Priest) on Jul 24, 2001 at 20:33 UTC | |
|
Re: preventing a system call from displaying output
by stefan k (Curate) on Feb 16, 2001 at 13:53 UTC | |
|
Re: preventing a system call from displaying output
by chipmunk (Parson) on Feb 16, 2001 at 19:30 UTC | |
|
Re: preventing a system call from displaying output
by oakley (Scribe) on Feb 16, 2001 at 17:47 UTC | |
|
Re: preventing a system call from displaying output
by zigster (Hermit) on Feb 16, 2001 at 19:38 UTC |