in reply to Re: Re: cgi problem
in thread cgi problem
andif (undef != 0) {#in number context, undef evaluates to 0, and we know + "0 != 0" does not stand. print "pg is wrong!"; } else { print "pg is right!"; }
Both print "pg is right!".if (undef ne "") {#string context print "pg is wrong!"; } else { print "pg is right!"; }
The moment I said this, a memory structure, called SV structure is allocated, so $a exists, although it holds undef value.my $a;
|
|---|