Uri Guttman wrote:
""D" == "Wagner, David <--- Senior Programmer Analyst --- CFS" 
<david.wag...@fedex.com>> writes:

  "D>     printf "All STDOUT/STDERR will be assigned to this scripts audittrail 
log!!\n";
  "D>     printf "All STDOUT/STDERR will be assigned to this scripts audittrail 
log!!\n";
  "D>     printf "All STDOUT/STDERR will be assigned to this scripts audittrail 
log!!\n";

aside from your stdout issue, why are you calling printf when you are
not using any formats? use print which will be faster and clearer. if
you use printf, the person reading your code is told to look for %
formats and upon finding none will curse you out! :)

also you can send multiple strings to print so you don't need multiple
calls (this is also faster). and given strings like the above, a single
here doc would even be better, faster and more readable:

        print <<TEXT ;
All STDOUT/STDERR will be assigned to this scripts audittrail log!!
All STDOUT/STDERR will be assigned to this scripts audittrail log!!
All STDOUT/STDERR will be assigned to this scripts audittrail log!!
TEXT

uri


Or
print "All STDOUT/STDERR will be assigned to this scripts audittrail log!!\n" x 3;


--
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

Regardless of how small the crowd is, there is always one in
it who has to find out the hard way that the laws of physics
applies to them too.


--
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