in reply to Redefining chomp()

Chomp removes any trailing string that corresponds to $/ or use English; $INPUT_RECORD_SEPARATOR, so my guess would that you just need to modify that...