Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: STDOUT buffering problem

by Khen1950fx (Canon)
on Apr 16, 2013 at 16:46 UTC ( [id://1028960]=note: print w/replies, xml ) Need Help??


in reply to STDOUT buffering problem

I noticed that you turned on autoflush twice. I would rather see something like this:
#!/usr/bin/perl -l use strict; use warnings; use Getopt::Long; use Image::Magick; use IO::Handle (); STDOUT->autoflush(1);
Easier on the eyes, no?

Replies are listed 'Best First'.
Re^2: STDOUT buffering problem
by illtud (Initiate) on Apr 17, 2013 at 14:55 UTC

    The code snippet was what was left from stripping the full script down to just enough to illustrate the problem, and I had been peppering it with many attempts to fix the buffering issue. It's not production.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-23 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found