Hi All.
Can anyone tell me why this line is OK:
ok( ( $hash->{a} == 7 ) && ( $hash->{b} == 256 ) ,
"Struct: Build: correct elements");
While this line:
ok( ( $hash->{a} == 7 ) and ( $hash->{b} == 256 ) ,
"Struct: Build: correct elements");
cause a warning:
Useless use of numeric eq (==) in void context
?
Shmuel.
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl
