Re: Decompression
-Original Message- From: Richard Clamp [EMAIL PROTECTED] Umm, *strokes beard* by archive you mean tar file, right? If so then Archive::Tar looks likely, and it even automagically deals with .gz This does exactly what I wanted, a pint is yours at the next meeting! files via Compress::Zlib (or so it says in the readme) It does as well, this should save a lot of grief. No non-core modules though? Can't you just create a local lib path with Archive::Tar in it and say you didn't cheat? If I can't get the module on the server then I guess I'll have to be inventive and just add the whole module to my script ;) And now back to your scheduled Buffy discussion. Dean -- Profanity is the one language all programmers understand. --- Anon
Re: Decompression
On Thu, 31 May 2001, Dean wrote: Question for the unix people on the list. I have an archive that's gzipped up and contains either a number of small files or a single large file. What's the easiest way to extract any given file? It has to use core modules and anyone with a sample script can earn a pint ;) Also for future reference does any one know a better way to do this than Compress::Zlib, core or non-core. I suppose # tar -xzf [archivename] [filename/that/you.want] is too easy .. I'm missing something again aren't I? -- Robin Szemeti Redpoint Consulting Limited Real Solutions For A Virtual World
Re: Decompression
On Thu, May 31, 2001 at 06:56:21PM +0100, Robin Szemeti wrote: Also for future reference does any one know a better way to do this than Compress::Zlib, core or non-core. I suppose # tar -xzf [archivename] [filename/that/you.want] is too easy .. I'm missing something again aren't I? Sorry, my bad. I'd like to be able to do the whole thing without shelling out. I'm currently using something similar your example in the script and it works but I'd rather use something in perl so i don't have to worry about external locations or even OS (Zlib should work on Windows. I think) Dean -- Profanity is the one language all programmers understand --- Anon
Re: Decompression
On Thu, May 31, 2001 at 06:28:44PM +0100, Dean wrote: Question for the unix people on the list. I have an archive that's gzipped up and contains either a number of small files or a single large file. Umm, *strokes beard* by archive you mean tar file, right? If so then Archive::Tar looks likely, and it even automagically deals with .gz files via Compress::Zlib (or so it says in the readme) What's the easiest way to extract any given file? It has to use core modules and anyone with a sample script can earn a pint ;) No non-core modules though? Can't you just create a local lib path with Archive::Tar in it and say you didn't cheat? -- Richard Clamp [EMAIL PROTECTED]