sub functionname{ my ($string_param, $other_string_param, @array_param) = @_; # do something with parameters, return values }