in reply to Re: Defined or Undefined - That is the question.
in thread Defined or Undefined - That is the question.
Since an array returns its length in scalar context--which is the context that unless places the array in--an array of length 0 will return 0, or false.
From reading Programming Perl, I thought that unless didn't permit a branching conditional. Can someone clarify this for a Perl newbie?
|
---|
Replies are listed 'Best First'. | |
---|---|
(sacked: unless/else) Re: Re: Re: Defined or Undefined - That is the question.
by sacked (Hermit) on Mar 14, 2001 at 04:29 UTC | |
by michael (Sexton) on Mar 14, 2001 at 06:07 UTC | |
|
In Section
Seekers of Perl Wisdom