in reply to simple question
You could chomp each variable separately, or you could chomp them all at once, like this:
chomp ($yr,$mm,$dd,$yyyymmdd); [download]