$| = 1; # Auto-flush STDOUT [download]
In reply to Re^3: To Debug a Hanging Perl Script by ikegami in thread To Debug a Hanging Perl Script by Anonymous Monk