Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my %hash = ( me => { loc = "", }, you => { loc = "", }, ); if ($hash{me}{loc} ne "") { print "location not found!"; } if (defined($hash{me}{loc})) { print "location WAS found!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Defined vs ne ""
by SuicideJunkie (Vicar) on Oct 12, 2011 at 15:01 UTC | |
by Anonymous Monk on Oct 12, 2011 at 15:07 UTC | |
by runrig (Abbot) on Oct 12, 2011 at 15:30 UTC | |
by ikegami (Patriarch) on Oct 12, 2011 at 19:14 UTC | |
by SuicideJunkie (Vicar) on Oct 12, 2011 at 16:15 UTC | |
|
Re: Defined vs ne ""
by NetWallah (Canon) on Oct 12, 2011 at 16:18 UTC |