in reply to Using Tar

Why not use the perl module Archive::Tar instead of the system call. You then have no problem with any system output and from the docs it looks like it has a 'remove' method which you could use to implement your update behaviour.

-- Hofmator

Replies are listed 'Best First'.
Re: Re: Using Tar
by demerphq (Chancellor) on Mar 07, 2003 at 18:10 UTC

    Why not use the perl module Archive::Tar instead of the system call.

    Archive::Tar requires that the entire tarball is in memory, which for situations of large files is not cool at all and thus its much better, essential really, to shell out to Tar.exe directly.

    For anyone feeling brave a rewrite of Archive::Tar to use temp files would be an interesting and useful project. (Come to think of it, i'm speaking of Version 0.072 here. I havent looked at later versions if there are any.)


    ---
    demerphq