Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a .tgz file

Status
Not open for further replies.

SpiNz

Technical User
Apr 21, 2008
4
US
I need to put about 8 files in one directory into a .tgz file. The program I am writing needs to be able to run on any computer, which I think is where my problem starts. I can't use a package that is not default on any computer with perl installed. Is there a way using the default packages in Perl that can allow me to create a .tgz file? (needs to be both unix/windows compatible)

Thanks
 
Take a look at some of the modules from cpan and include the appropriate modules with your script (take a look at the use lib directive.)

Alternately, you could include the appropriate code from those same modules in your script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top