Re: Chomp method
- From: nishanth_ev@xxxxxxxxx (Nishanth Ev)
- Date: Wed, 26 Apr 2006 22:54:47 -0700 (PDT)
Hello,
The chomp function will chomp off the last character
if its a new line.
Spaces wont be truncated by chomp.
Regards
Nishanth
Hello
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?
Andrew
--
To unsubscribe, e-mail:
beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail:
beginners-help@xxxxxxxx
<http://learn.perl.org/>
<http://learn.perl.org/first-response>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
.
- References:
- Chomp method
- From: AndrewMcHorney
- Chomp method
- Prev by Date: Chomp method
- Next by Date: Re: Chomp method
- Previous by thread: Chomp method
- Next by thread: Re: Chomp method
- Index(es):
Relevant Pages
|
|