Do you have warnings and strict enabled?
$id = getParent ($taxId);
The variable $taxId is not available inside this subroutine so it's the same as saying:
$id = getParent (undef);
while ($taxId = $taxId1){ my $parent = `getz "[taxonomy:$taxId1]" -f pid`;
The variable $taxId1 is not assigned a value until later in the subroutine and is not defined at all.
In reply to Re: perl question
by jwkrahn
in thread perl question
by semi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |