sub _run_ykpers {
my ($child_err, $child_in, $child_out) = (gensym);
my $pid = eval { open3($child_in, $child_out, $child_err, @_) };
if (my $err = $@) {
throw "Failed to run $_[0] - Make sure you have the YubiKey Personalization Tool (CLI) package installed.\n",
sub _run_ykpers {
my ($child_err, $child_in, $child_out) = (gensym);
my $pid = eval { open3($child_in, $child_out, $child_err, @_) };
if (my $err = $@) {
throw "Failed to run $_[0] - Make sure you have the YubiKey Personalization Tool (CLI) package installed.\n",