[Israel.pm] why did it happen

Yossi Itzkovich Yossi.Itzkovich at ecitele.com
Wed Jun 20 10:02:49 PDT 2007


Hi,

A college here wanted to write this code:
my $a=(27>20)?"big":"small";

And instead wrote:
my $a= (27>20)?$a="big":$a="small");

Surprisingly $a was set to "small".  Why ?

Yossi




More information about the Perl mailing list