<p>I am working at a client site where there is a proxy server (<code>HTTP</code>) in place. If I do a hard reset of the emulator it forgets network connection settings for the emulator and settings in the hosted Windows Mobile OS. If I 'save state and exit' it will lose all of these settings. I need to do hard resets regularly which means that I lose this information and spend a lot of time setting:</p>

<ul>
<li>The emulators associated network card</li>
<li>DNS servers for network card in the WM OS.</li>
<li>Proxy servers in connection settings of WM OS.</li>
</ul>

<p>How can I make my life easier? Can I save this as defaults in the emulator, or create an installer easily?</p>

This is explained in the Perl
documentation
.
Because of Perl operator precedence the statement is being parsed as
```
```
($condition ? $a= 2 : $a ) = 3 ;
```
```
Because the ?: operator  produces an assignable result, 3 is assigned to the result of the condition.
When $condition is true this means ($a=2)=3 giving $a=3
When $condition is false this means ($a)=3 giving $a=3
The correct way to write this is
```
```
$a = ( $condition ? 2 : 3 );
print $a;
```
```
We got bitten by this at work, so I am posting here hoping others will find it useful.