>>>>> "A" == Asterix  <lange.gerh...@gmail.com> writes:


  A> Instead of this     printf OUTPUT_FILE "@output\n\n";
  A> I've used           print OUTPUT_FILE "@output\n\n";

that would not make any difference in buffering or anything. the second
is better in that you don't use printf's formatting there. when i see
lots of printf calls, i know the coder was doing too much c before they
learned perl. printf is actually rarely needed in perl. sprintf is more
useful when you need formatting since you can decide where/when to write
the output later.


  A> At the top of the script I also inserted "Autoflush":
  A> local $| = 1; # Default is 0

no need for local there. $| is private to the currently selected output
handle.

uri

-- 
Uri Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to