in reply to Getopt problem

Neither $xmllocation or $xlslocation can be equal to "" due to your:
my $xmllocation = $opt_x || print "...";
If $opt_x is false, $xmllocation is going to be the return value of print, which is most of the time 1.

Abigail