exquisitemb has asked for the wisdom of the Perl Monks concerning the following question:
Result is that it gives is "equal". Why?#!/usr/bin/perl $x; if(($x=1) eq ($x=2)) { print "equal\n"; } else { print "not equal\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Debating With Friends
by davido (Cardinal) on Mar 03, 2015 at 05:49 UTC | |
Re: Debating With Friends
by BrowserUk (Patriarch) on Mar 03, 2015 at 04:54 UTC | |
Re: Debating With Friends
by GrandFather (Saint) on Mar 03, 2015 at 05:00 UTC | |
Re: Debating With Friends
by Anonymous Monk on Mar 03, 2015 at 17:17 UTC | |
Re: Debating With Friends
by KurtSchwind (Chaplain) on Mar 09, 2015 at 12:57 UTC |