Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: conditional print. Is correct to use it? (updated)

by AnomalousMonk (Archbishop)
on Oct 28, 2020 at 19:29 UTC ( [id://11123276]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Win8 Strawberry 5.8.9.5 (32)  Wed 10/28/2020 15:06:58
    C:\@Work\Perl\monks
    ...
            $side,            ($x || $y),      $x ? $x : $y;
    ^Z
    side effect 'default string'  logical-or 'default string'  ternary 'de
    +fault string'
    
  2. or download this
    sub func {
        ...
        ...
        if ($x) { foo(); bar(); } else { fee(); fie(); }
        }
    
  3. or download this
    Win8 Strawberry 5.8.9.5 (32)  Wed 10/28/2020 22:49:24
    C:\@Work\Perl\monks
    ...
    ^Z
    x is true   'from main::bar' returned from true clause
    x is false  'from main::fie' returned from false clause
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found