http://www.perlmonks.org?node_id=924849


in reply to Creating a tgz file without a module

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