on Mon, 27 May 2002 13:01:36 GMT, [EMAIL PROTECTED] (Harry Jackson) wrote:
> s/\s+$//g; As explained by Sudarsan Raghavan, the 'g' modifier is not necessary. The '+' in '\s+' gobbles up all trailing whitespace. > $\ is a global which hold your end of line terminator (I think) In fact, '$\' is the output record separator, in other words the character (sequence) Perl prints after each 'print' statement. It is undefined by default (i.e. nothing "extra" gets printed). -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]