<?xml version="1.0" encoding="windows-1252"?>
<node id="1006555" title="Illogical logic statement" created="2012-11-30 21:23:16" updated="2012-11-30 21:23:16">
<type id="115">
perlquestion</type>
<author id="1006553">
fkento</author>
<data>
<field name="doctext">
I can't for the life of me figure this one out:

&lt;code&gt;
  my $str = 'false';

  if ( $str == 'true' ) {
    print "$str=true\n";
  } else {
    print "$str=false\n";
  }
&lt;/code&gt;

Output:&lt;p&gt;
&lt;code&gt;false=true&lt;/code&gt;
&lt;/p&gt;
What am I missing?</field>
</data>
</node>
