in reply to Archive::Tar::Streamed Unexpected end-of-file

Actually, You're not closing the file handle correctly.

Your $fh has no ->close method, it should be written as close $fh; instead;

As for the end of file, try running this before closing the file $tar->writeeof;

Replies are listed 'Best First'.
Re^2: Archive::Tar::Streamed Unexpected end-of-file
by DanEllison (Scribe) on Jan 28, 2011 at 16:30 UTC
    BTY, thanks. The $tar->writeeof was the ticket.
Re^2: Archive::Tar::Streamed Unexpected end-of-file
by Anonymous Monk on Jan 07, 2011 at 02:46 UTC
    Your $fh has no ->close method, it should be written as close $fh; instead;

    Um, yes it does :) otherwise it would die with an error

    $ perl -e" STDOUT->close" Can't locate object method "close" via package "IO::Handle" at -e line + 1. $ perl -MIO::File -e" STDOUT->close"