in reply to if elsif else not working

Hello parksbanyon, and welcome to the Monastery!

Your elsif condition is incorrect. Change it to:

elsif ($TARX eq "ini" || $TARX eq "txt")

and it should work as expected.

Hope that helps,

Update: keszler++ beat me to it!

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,