$ perl -e'chop "fred"' Can't modify constant item in chop at -e line 1, at EOF Execution of -e aborted due to compilation errors.