in reply to Re: Remove newline character from start of stringin 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