Steve Grazzini wrote: > > There are several reasonable answers, and I'm not > sure which one you're looking for: > > 1) tr/ //d # remove all *spaces*
1.5) tr/ \n\r\t\f//d # remove all whitespace (quickly) > 2) s/\s+//g # remove all "whitespace" > > And check: > > $ perldoc -q 'blank space' > > For how to trim leading/trailing whitespace. > > And fyi, chomp() removes $\, the input record > separator, which is a newline by default, gets > changed fairly often. FYI, $\ is the output record separator, $/ is the input record separator. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]