Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2019-10-22 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?