On Dec 12, Andre` Niel Cameron said: >I have a pain in the butt array that SOMETIMES has a CR at the end and >sometimes does not. Can anyone think of a way to test to see if the \n is >there and if it is then chop else no chop? Cause if I just use chop then it >starts chopping off letters sometimes...
That's why chomp() exists. -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]