P is for Practical | |
PerlMonks |
How to compare an empty key with another empty key in associative arrayby nandymamith (Novice) |
on Oct 24, 2012 at 10:33 UTC ( [id://1000596]=perlquestion: print w/replies, xml ) | Need Help?? |
nandymamith has asked for the wisdom of the Perl Monks concerning the following question: Am trying to compare two values, say $a = ''; $b = {}; if($a eq $b){ print "PASS"; } else { die "FAIL"; } May i know how to get the output as PASS ?? moreover i don't want get my out put as FAIL. In short how to compare the associative array($b) with the empty variable ($a)
Back to
Seekers of Perl Wisdom
|
|