|No such thing as a small change|
Re: Extracting files Using Archive::Tar?by Flexx (Pilgrim)
|on Oct 07, 2002 at 22:35 UTC||Need Help??|
Hi, without much thinking about it, "/.....$submissionID/$user_File_Filename" instantly appears to be quite a strange filename to me. Are you sure you don't mean "../../.$submissionID/$user_File_Filename", or something like that?
Just a "hipshot", but maybe it hits...
Apart from that, It's hard to help you, when you're not providing a minimal test case. Reduce your program to a minimal script that exhibits the error and repost (Chances are you'll discover the bug yourself by doing so). It might well be that the bug is not in the three lines you posted.
For example, it might be that $submissionID or $user_File_Filename might not have the values you'd expect them to hold (print them at some point above the lines you presented to make sure).
You're also not checking the return code of open, Archive::Tar->new and $tar->extract_archive(TARFILE).
Do you use strict and warnings?