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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to compare an empty key with another empty key in associative array
by bart (Canon) on Oct 24, 2012 at 11:06 UTC | |
|
Re: How to compare an empty key with another empty key in associative array
by DrHyde (Prior) on Oct 24, 2012 at 10:41 UTC | |
|
Re: How to compare an empty key with another empty key in associative array
by 2teez (Vicar) on Oct 24, 2012 at 12:58 UTC | |
|
Re: How to compare an empty key with another empty key in associative array
by Rudolf (Pilgrim) on Oct 24, 2012 at 11:50 UTC | |
by choroba (Cardinal) on Oct 24, 2012 at 11:51 UTC |