in reply to Re: Remove newline character from start of string
in thread Remove newline character from start of string

Nice, but that works only if $/ eq reverse($/). Otherwise, you also need local $/=reverse $/ before chomp($rev).

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)