in reply to Creating a tgz file without a module
-
So the question is, can this be done without using Archive::Tar or any other modules? I'm unable to install any modules on this system, thus the problem I'm facing.
Since you have not specified what environment (WinBloze, *nix, *ix or Macinsquash) I am going to answer with a *nix filter.
To directly answer your question:
| hand waving here... system("tar cf tarfile.tar file1 file2 ... filen"); system("gzip -S tgz tarfile.tar");
But wait! I'm not going to let you off the hook that easily.
If you are running in a *nix environment you can install modules on your environment by putting them someplace in your HOME directory and then referencing that location with the use lib pragma. WinBloze I can't answer for since I don't do windows.
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
In Section
Seekers of Perl Wisdom