[tpm] Making IO::Handle objects "hot"

Alex Beamish talexb at gmail.com
Sat Nov 20 13:35:48 PST 2010

On Sat, Nov 20, 2010 at 1:28 AM, Digimer <linux at alteeve.com> wrote:
> I've got a program that calls 'yum install ...'. I've set my stdout to hot
> ($|=1;), but there is no output at all during the package download stage. I
> am not entirely convinced that this is a problem with IO::Handle's object
> being hot though, as when I do finally get output, it starts after the
> download stage.
> So if this is a buffering issue, how could I turn it off? If it's that 'yum'
> is writing the download info to somewhere else, how could I capture that
> inside perl?

I'd probably try using IPC::Run to execute the 'yum install', then
watch the stdout from that sub-process.

Alex Beamish
Toronto, Ontario
aka talexb

More information about the toronto-pm mailing list