in reply to Re: elseif syntax error
in thread elseif syntax error

I think I'd prefer
sub rename_texts{ if(){ } elsif(){ } }