That error means two variables are being declared with my() inside the same block.
Can you take a look in the code at the lines mentioned in the errors and see if you can see two same name variables.
eg...
...some code...
my $foo = 2;
Can you take a look in the code at the lines mentioned in the errors and see if you can see two same name variables.
eg...
Code:
my $foo = 1; ...some code...
my $foo = 2;