Help for this page

Select Code to Download


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