Nice, but that works only if $/ eq reverse($/). Otherwise, you also need local $/=reverse $/ before chomp($rev).
Alexander
In reply to Re^2: Remove newline character from start of string
by afoken
in thread Remove newline character from start of string
by danj35
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |