in reply to seek() functionality on pipes

On linux, you can see how much data is in the pipe, you might be able to sysread the first few bytes, to get the compression header, save those bytes, then redirect it( and the rest of the sysread chunks) to the appropriate decompessor pipe's filehandle. See IPC3 buffer limit problem and look at perldoc -q 'character waiting'.

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^2: seek() functionality on pipes
by HKS (Acolyte) on Jul 21, 2008 at 19:03 UTC
    Thanks for the pointer. I won't be able to use that in this particular project due to portability issues, but it'll be handy sometime in the future.