in reply to Re: Archive Tar
in thread Archive Tar

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Archive Tar
by Fletch (Bishop) on May 17, 2007 at 16:04 UTC

    So files with the names you expect exist in the current directory (since the <1r3*> operation is succeeding), and yet you don't think the files you expect to exist are being extracted . . .

    /boggle

    Update: Just to fully explain the why behind the /boggle:

    • The glob operation (<1r3*>) wouldn't return anything unless there are files matching it already existing in the current working directory
    • If the files weren't there,@filename will be empty and nothing will be extracted
    • If the files are there, then @filename will have names of files but there will be files with those names in the current directory (which makes it kinda hard to tell why you don't think the extract is working)

    You've set up a chicken-and-egg problem in that your list of files to extract won't work unless there are files with those names already in the current directory. The approach shown below grepping through the list of files obtained from the object avoids this.

    That being said, seeing as you've proven unwilling to give an accurate representation of what the real output and errors are that you're getting (c.f. Untar in perl; the explanation that the error message you provided couldn't be produced from the code you gave specifically being explained here) I don't know why anyone would want to trouble themselves attempting to help you any further.