- or download this
sub foo($$);
- or download this
sub foo($$);
sub bar;
bar "arg1", foo "arg2", "arg3", "arg4";
- or download this
bar("arg1", foo("arg2", "arg3"), "arg4");
- or download this
sub foo ($$);
my @args = ("arg1", "arg2");
foo @args;
- or download this
sub foo(); # Sub takes no arguments.
sub foo($); # Sub takes one argument.
sub foo(&@); # First argument is a block.
sub foo(\@@); # First argument will be reffed.
- or download this
sub bar;
sub foo($);
bar "arg1", foo "arg2", "arg3";