You could use the substitution function to do this. $test = "\nText here"; $test =~ s/^\n//; # removes that first end of line character.
R.A. Howard -----Original Message----- From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 2:40 PM To: [EMAIL PROTECTED] Subject: Removing the end of line character? Hi all, I want to remove the end of line character from the beginning of a string. I know that I can use chomp to remove it if it is at the end of the string, but I don't know how to do it if it is in the front of the field. Thank you for your advices. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]