On Mar 18, Richard Pfeiffer said: >Good Afternoon,
I have bad news for you. Your subject leads me to this statement: "it doesn't work that way." >I have a string that has various white space >(tabs, spaces, etc) at the end of it. I want to >find the last real char [0-9a-zA-Z] and then use >chop or chomp to remove the whitespace. You're better off using something like $string =~ s/\s+$//; -- 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. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]