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

_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to