Re: chaining defines

[email protected] (yitzle)
Newsgroups perl.beginners
Message-ID <[email protected]>
On Tue, May 6, 2008 at 9:49 AM, Robert Hicks <[email protected]> wrote:
> Is there anything wrong with:
>
>  if ( defined $one && defined $two && $one eq $two ) {
>    #### do something
>  }

No. Its fine.
You might be interested in "Operator Precedence and Associativity" [1]

[1] http://perldoc.perl.org/perlop.html#Operator-Precedence-and-Associativity
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.