sub functionname { my $string_param = shift; my $other_string_param = shift; my @array_param = @_ ; #-- the remnant after the first two are assigned #-- do edit check here, throw error #-- do rest of sub function }