Ok, if you just want to get rid of a trailing space, use chomp() function instread of chop(). Coz chop() trims the the last character, and chomp() trims the record seperator ( $/ ) which is by default a new line that keeps giving you pain :-)
Andre` Niel Cameron wrote: ANC: Date: Wed, 12 Dec 2001 11:22:31 -0500 ANC: From: Andre` Niel Cameron <[EMAIL PROTECTED]> ANC: To: [EMAIL PROTECTED] ANC: Cc: [EMAIL PROTECTED] ANC: Subject: [CGI] Interesting Chop question. ANC: ANC: Hi, ANC: ANC: I have a pain in the butt array that SOMETIMES has a CR at the end and ANC: sometimes does not. Can anyone think of a way to test to see if the \n is ANC: there and if it is then chop else no chop? Cause if I just use chop then it ANC: starts chopping off letters sometimes... ANC: ANC: Regards, ANC: Andre` C. ANC: Technical Support ANC: ԿԬ ANC: ---------------------------------------------------------------------------- ANC: - ANC: Visit our support manual at http://supportmanual.com/ ANC: ANC: - ANC: The CGI-LIST is sponsored by: ANC: DINNERBROKER.com! ANC: Fine dining up to 30% off! ANC: Exclusive access to tables! ANC: http://www.dinnerbroker.com/ ANC: ANC: This is the cgi-list mailing list: ANC: To unsubscribe, send email to: ANC: [EMAIL PROTECTED] ANC: with the body: ANC: unsubscribe cgi-list ANC: ANC: No one may in any way attempt to data-mine or archive the ANC: mailing list for financial gain without the express permission ANC: of Jann.com. ANC: -- Sherzod Ruzmetov <[EMAIL PROTECTED]> http://www.UltraCgis.com, Consultant 989.774.6265 +----------------------------------------+ | There is nothing wrong with your tools.| | But we can make a better one. | +----------------------------------------+ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]