http://www.perlmonks.org?node_id=599638


in reply to writing to a file using print

Brad,

Looks like you're "suffering from buffering".

Try turning buffering off by adding the following line before your print statement:

$|++;

Cheers,

Brent

-- Yeah, I'm a Delt.

Replies are listed 'Best First'.
Re^2: writing to a file using print
by geekphilosopher (Friar) on Feb 13, 2007 at 06:50 UTC
      This whole discussion gives me nasty flashbacks to a time when I couldn't have been more wrong. At that point I switched from $| = 1; to $|++;.

      I've mostly gotten over it... :)

      Cheers,

      Brent

      -- Yeah, I'm a Delt.