Hi,<br><br>How would I do &quot;-X&quot; test in a loop?  I&#39;ve been trying variations on eval, but can&#39;t get it to work:<br><br>        foreach (qw[-e -r -s]) {<br><br>            eval &quot;$error = $_ unless $_ $xopt{data_file}&quot;;<br>
            print &quot;$_: $error\n&quot;;<br>        }<br><br>but $error doesn&#39;t change if any of the tests fail<br><br>Obviously my &quot;eval&quot; is wrong but I&#39;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>