Gossamer Forum
Home : General : Perl Programming :

perl and

Quote Reply
perl and
do the following two lines mean the same thing?

Code:
($restricted = 1) if ($_[0] eq "view" and $auth_view_own and (!$per_spec));

($restricted = 1) if ($_[0] eq "view" && $auth_view_own && (!$per_spec));
Quote Reply
Re: [delicia] perl and In reply to
In that particular case, yes. && has a higher precedence than 'and'.

Adrian