$id = getParent ($taxId); #### $id = getParent (undef); #### while ($taxId = $taxId1){ my $parent = `getz "[taxonomy:$taxId1]" -f pid`;