fkento has asked for the wisdom of the Perl Monks concerning the following question:
Output:my $str = 'false'; if ( $str == 'true' ) { print "$str=true\n"; } else { print "$str=false\n"; }
false=true
What am I missing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Illogical logic statement
by toolic (Bishop) on Dec 01, 2012 at 03:09 UTC | |
|
Re: Illogical logic statement
by Athanasius (Archbishop) on Dec 01, 2012 at 02:32 UTC | |
by fkento (Acolyte) on Dec 01, 2012 at 02:41 UTC | |
by LanX (Saint) on Dec 01, 2012 at 02:44 UTC | |
by fkento (Acolyte) on Dec 01, 2012 at 02:46 UTC | |
by Jenda (Abbot) on Dec 01, 2012 at 12:44 UTC | |
by Anonymous Monk on Dec 01, 2012 at 12:54 UTC | |
by Laurent_R (Canon) on Dec 01, 2012 at 11:07 UTC | |
|
Re: Illogical logic statement
by roboticus (Chancellor) on Dec 01, 2012 at 02:37 UTC | |
|
Re: Illogical logic statement
by GrandFather (Saint) on Dec 02, 2012 at 21:16 UTC |