Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by kcott (Archbishop)
on Oct 29, 2020 at 03:50 UTC ( [id://11123288]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # 5.14.0 or later
    $ perl -E 'my ($x, $y) = (0, "fallback"); $x = length $x ? $x : $y; sa
    +y $x'
    ...
    
    $ perl -E 'my ($x, $y) = ("", "fallback"); $x //= $y; say "<$x>"'
    <>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-19 17:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found