perl -e '$foo = 1; push $foo, 2' Type of arg 1 to push must be array (not scalar dereference) at -e line 1, at EOF Execution of -e aborted due to compilation errors.