Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: foreach loop to untar multiple files

by fasoli (Beadle)
on Nov 13, 2015 at 17:09 UTC ( [id://1147677]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $results = "~/results"; # results coming in.
    for (glob "$results/*.tar.gz") {
        system "tar -tvf $_";
    }
    
  2. or download this
    foreach (@tar) {
      `tar -tvf $results\/$_`;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-18 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found