I must be missing the part in your question where you tell us how Perl is involved in this.
Have you read the tar documentation to find out how to use it properly?
Take a look at
How do I post a question effectively? and the
PerlMonks FAQ if you have not done so already.
Martin