"Michael W . Cocke" wrote: > > This is probably a stupid question, but does anyone know how to force > the output of print to actually PRINT, without forcing me to use a \n? > > It's sort of futile to print a '.' every 60 seconds to indicate the > app hasn't crashed if the line of periods doesn't show up on the > screen until a half hour later....
Well, if you want to use print() you are going to have to turn on autoflush. $| = 1; # autoflush on for ( 1 .. 10 ) { print '. '; sleep 1; } print " done.\n"; Another way to do it is to use syswrite instead which is not buffered. for ( 1 .. 10 ) { syswrite STDOUT, '. '; sleep 1; } print " done.\n"; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>