http://qs321.pair.com?node_id=11140929


in reply to Re^3: The print is output later after die
in thread The print is output later after die

There's a difference. $| = 1; is equivalent to select()->autoflush(), not STDOUT->autoflush().