if (undef ne "") {#string context print "pg is wrong!"; } else { print "pg is right!"; }