Only at a lower level in the sense that $/ doesn't actually help anything if you wrote it properly with a lexical analyser. But you are clearly not up to the level of seeing that with a lexical analyser in play, you really don't want chomp() in there either and so all things considered...
Yes, I agree, you should be sorry for your arrogance.