Help for this page

Select Code to Download


  1. or download this
    # this sub takes named parameters:
    sub restart_server {
    ...
    
        # ...
    }
    
  2. or download this
    restart_server(
        -host    => $host,
    ...
        port    => $port,
        timeout => $timeout
    ); # and this...
    
  3. or download this
    restart_server({
        -host    => $host,
    ...
        Port    => $port,
        Timeout => $timeout
    ]); # so does this...
    
  4. or download this
    sub get_named_params
    {
    ...
    
        return $stripped_name;
    }