http://www.perlmonks.org?node_id=952005


in reply to Re^4: syntax error near else and }
in thread syntax error near else and }

there are a number of if statements and a matching else for each
I have not verified whether each statement has its if, but there is definitely an else without an if. It is located at the very place of the error:
41 else { 42 $hold = $hold.$hold; 43 } 44 else {
Do you see it?  else {...} else