Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: logical non-short-circuit operators

by JavaFan (Canon)
on Nov 02, 2011 at 21:33 UTC ( [id://935498]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    no warnings 'uninitialized';
    if (!!(my $num = $recFono->field_as_text('102') +
        !!(my $type = $recFono->field_as_text('104')) {
        something();
    }
    
  2. or download this
    my $num = $recFono->field_as_text('102');
    my $type = $recFono->field_as_text('104');
    if ($num || $type) {
        something();
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 03:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found