use Params::Named; sub convert { MAPARGS \my($from, $to, $thing); ... }