D
David
use strict;
use warnings;
$| = 1;
for ( 1 .. 5 )
{
print ".";
sleep 1;
}
the code prints:
..
..
..
..
..
without $| , it will print out: ..... How can I get the behavior of $|
without the newline?
Thanks for the help.
David
use warnings;
$| = 1;
for ( 1 .. 5 )
{
print ".";
sleep 1;
}
the code prints:
..
..
..
..
..
without $| , it will print out: ..... How can I get the behavior of $|
without the newline?
Thanks for the help.
David