chomp(substr($str, 0, length($/)); [download]
In reply to Re^2: Remove newline character from start of string by Roy Johnson in thread Remove newline character from start of string by danj35