<?xml version="1.0" encoding="windows-1252"?>
<node id="416292" title="Re^2: The difference between my and local" created="2004-12-20 14:42:41" updated="2005-07-19 22:23:26">
<type id="11">
note</type>
<author id="116575">
steves</author>
<data>
<field name="doctext">
&lt;p&gt;
That code doesn't compile.  &lt;b&gt;TEST&lt;/b&gt; starts with double
quotes and ends with a single quote.  If I fix that, this
works as expected for me.  Here's a version you can run 
with your &lt;b&gt;$x&lt;/b&gt; argument given on the command line:
&lt;code&gt;
use strict;

my $x = shift(@ARGV);

my $a = "TEST";
  if ($x == 1) {
    $a = "one";
  } elsif ($x == 2) {
    $a = "TWO";
  } else {
    $a = "EMPTY";
  }

print "a=$a\n";
&lt;/code&gt;
&lt;/p&gt;</field>
<field name="root_node">
94007</field>
<field name="parent_node">
416272</field>
</data>
</node>
