Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: preventing a system call from displaying output

by oakley (Scribe)
on Feb 16, 2001 at 17:47 UTC ( [id://58856]=note: print w/replies, xml ) Need Help??


in reply to preventing a system call from displaying output

If you are wanting to parse the output of what zip gives (and yes the others have touched on this already) you could try:
my $tmpfile = POSIX::tmpnam(); system("unzip -l $filename 2>$tmpfile"); open(OUTPUT, "$tmpfile") || die "Cant open $tmpfile file, $!\n"; while(<OUTPUT>) { ... do something here ... } close(OUTPUT);
- oakley
Embracing insanity - one twitch at a time >:)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-03-28 09:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found