- or download this
# Perl 6 :)
...
restart_server host => "...", port => ..., timeout => ...;
# or
restart_server :host«...», :port(...), :timeout(...);
- or download this
# Perl 5
sub foo {
my $a = shift;
...;
}
- or download this
sub foo {
my ($a, $b, $c, $d) = @_;
...;
}
- or download this
sub foo {
my %args = @_;
...
my ($a, $b, $c, $d) = @{{@_}}{qw( a b c d )};
...;
}