Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perldoc's explanation of the difference between '&&' and 'and' has me confused

by stevieb (Canon)
on Jul 05, 2021 at 05:04 UTC ( [id://11134648]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    
    $one += 0 && warn "&&\n";
    $one += 0 and warn "and\n";
    
  2. or download this
    ||
    and
    
  3. or download this
    ($one += 0) || warn "||\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 00:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found