Plankton has asked for the wisdom of the Perl Monks concerning the following question:
I would think that the line next unless $key; is not necessary ... right? Or are there situations where this may be needed?... foreach $key (sort keys %{$obj->somehash}) { next unless $key; ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Is this "next unless $keys" necessary?
by Fletch (Bishop) on Jan 13, 2009 at 17:29 UTC | |
Re: Is this "next unless $keys" necessary?
by Bloodnok (Vicar) on Jan 13, 2009 at 17:31 UTC | |
Re: Is this "next unless $keys" necessary?
by jeffa (Bishop) on Jan 13, 2009 at 17:55 UTC | |
Re: Is this "next unless $keys" necessary?
by gone2015 (Deacon) on Jan 13, 2009 at 17:58 UTC |
Back to
Seekers of Perl Wisdom