> -----Original Message-----
> From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]
> 
> However, you didn't challenge my point.  You merely made a different
> point.
> It is *not* sufficient to merely experiment.  Reading the reference doc is
> mandatory for complete understanding.

That's because I'm not (completely) against your point.  ;-)

However, the original question was:

<<< I am wondering how the chomp function works. I am looking to see how I
can truncate new line and/or carriage returns from a string. Will chomp do
nothing if there are no carriage return or line feed at the end. If the end
of the string has a space will it leave it alone? >>>

Which is more effective: (1) developing a reference document that covers all
possible questions? Or (2) Writing six lines of code to test it?

As soon as someone discovers the answer to the above referenced question,
they'll want to know if chomp removes a trailing \r, or \t or space or ....

-r

Russell J Foster
R. J. Foster and Associates
[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to