Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: foreach loop to untar multiple files

by Paladin (Vicar)
on Nov 13, 2015 at 16:25 UTC ( #1147670=note: print w/replies, xml ) Need Help??

in reply to foreach loop to untar multiple files

system doesn't return the output of the command run, it returns the exit code of what's run, in your case 0 hence the 0 in your output "tar: 0: Cannot open: No such file or directory". Take a look at the glob() perl command to get the listing of files in a directory.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2020-02-24 21:37 GMT
Find Nodes?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?

    Results (107 votes). Check out past polls.