$ perl -wE' sub foo() { 1; } foo("bar"); ' Too many arguments for main::foo at -e line 3, near ""bar")" Execution of -e aborted due to compilation errors.