$ perl -e 'chomp(" foo ");' Can't modify constant item in chomp at - line 1, near "" foo ")"