Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Secret Perl Operators: the boolean list squash operator, x!!

by ioannis (Vicar)
on Aug 01, 2006 at 10:24 UTC ( #564960=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Secret Perl Operators: the boolean list squash operator, x!!
in thread Secret Perl Operators: the boolean list squash operator, x!!

Indeed, the substring related to $is_admin_link should have been written to reflect both boolean states, like this:

(($is_admin_link||'') && $admin)

Whether this form is preferable than using the trenary operator, the issue props our individual taste.

( The missing slashes were already prepended on my variables -- you had no way of knowing this; which in turn reminds us of the better clarity of join(), another subject and one more issue to consider.)


Comment on Re^3: Secret Perl Operators: the boolean list squash operator, x!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://564960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-07-06 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls