in reply to Problem with print

Does it help to turn autoflush on?

$|++;

Replies are listed 'Best First'.
Re^2: Problem with print
by Zaxo (Archbishop) on May 10, 2007 at 05:41 UTC

    RL has nailed it. Compare,

    $ perl -e'sleep 1, print "\r$_" for 1..10; print $/'
    to,
    $ perl -e'$| = 1; sleep 1, print "\r$_" for 1..10; print $/'

    After Compline,
    Zaxo

      thnx guys solved it adding this solves it autoflush STDOUT 1;