foo($a, $b, $c); my @list = ($a, $b, $c); foo(@list);