At 03:36 PM 8/9/00 -0400, Bryan C. Warnock wrote:
>On Wed, 09 Aug 2000, Ed Mills wrote:
> > 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";
>
>Chomp removes one or more line separators from the end.

Chomp only removes one instance of the record separator from the end.

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to