|
From: Steve C. <sc...@ja...> - 2009-11-18 04:02:03
|
Thanks for that hint. I like learning something new every day. :-) Steve Thomas Sefzick wrote: > i'm not sure if 'flush' is really needed for perl. > > python has the '-u' option to have stdin, stdout, > and stderr unbuffered. > perl doesn't have a similar option. > so i think it's a python-specific problem. > > BTW, by using > #!/usr/bin/python -u > as the 1st line of your script, you need no 'flush()' > > > stevecoh1 wrote: >> Thank you! That's the answer. Might want to tell Mr. Janert about this >> so they can print an errata. Or is the flush not necessary in Perl? >> >> >> Thomas Sefzick wrote: >> >>> you need a 'flush' after 'print'ing the two lines: >>> >>> #!/usr/bin/python >>> >>> import os >>> import sys >>> import math >>> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 >> 30-Day >> trial. Simplify your report design, integration and deployment - and focus >> on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Gnuplot-info mailing list >> Gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> >> > |