perl -E'sub x(\$){}; x("hallo")' Type of arg 1 to main::x must be scalar (not constant item) at -e line 1, near ""hallo") " Execution of -e aborted due to compilation errors.