Perl Turn Array Into String Python Functions With Default