# at this point consider adding all your parameters into a hash and # pass that to http_tiny($options) instead of passing a long list which # may contain optional parameters. my %h; $h{infile} = $infile; ...