in reply to Re^8: How to match last character of string, even if it happens to be a newline?
in thread How to match last character of string, even if it happens to be a newline?

I think it's fine as long as it's only one character and '"\n" eq "\n"'.

So portability issues seem unlikely.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^9: How to match last character of string, even if it happens to be a newline?