Here is the argument-

Perl has (had?) chomp(). It removes \n at the end of a line. That's 
something we often need to do. We ALSO often need to ADD \n to the end of a 
line. This usually looks something like:

  print "$kitty\n";

Hence my println() suggestion. Maybe instead it should be:

  unchomp;
  print;

Where unchomp ADDS \n to the end of text if it isn't already there.

If there is chomp there should be unchomp- the reasons for including it are 
the same as for including chomp. If chomp is optimized so too can unchomp.

Having chomp without unchomp would be like having <= but not having >=
[see note]. Sure you can get by without it- just change the order of the 
args, but why would you want to? If you have one, the other needs to be 
there for, if nothng else, parity.

BTW I never suggested println() was in the language before. I just glommed 
onto another thread inadvertantly. Sorry!

Ed

note- in Programming Perl v2 and v3 this IS the case by the way- the >= (ge) 
logical operator is not in the book!
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Reply via email to