in reply to do until question

Your code does not even compile. Please post real, tested code.

Also, please explain in English what this line is supposed to do. Also show and explain what steps you have taken to verify your assumptions:

my $taxId = [0-9];

This line of code is likely wrong:

while ($taxId = $taxId1){

Please explain what the while loop is supposed to do.