Hi,<br><br>How would I do "-X" test in a loop? I've been trying variations on eval, but can't get it to work:<br><br> foreach (qw[-e -r -s]) {<br><br> eval "$error = $_ unless $_ $xopt{data_file}";<br>
print "$_: $error\n";<br> }<br><br>but $error doesn't change if any of the tests fail<br><br>Obviously my "eval" is wrong but I've tried it a bunch of different ways and cant get it work.<br>
<br>Could someone point me in the right direction?<br><br>Thanks<br>Jay<br>