sub foo ($$) { print "@_\n"; } foo(1,2,3); % perl foo.pl Too many arguments for main::foo at foo.pl line 2, near "3)" Execution of foo.pl aborted due to compilation errors.