What do you mean? \s+\z will match 0 to all whitespace at end of the buffer. You can see if your variable has this with m/\s+\z/ or you can replace it with FOO: s/\s+\z/FOO/
On 3/15/07, Jm lists <[EMAIL PROTECTED]> wrote:
Thanks John.That's the right way. Another question,what's the regex of "\s+\z" ?
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/