Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: shift and logical or

by mhearse (Chaplain)
on Nov 17, 2012 at 01:20 UTC ( #1004272=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (!$val) {
        $val = "undefined";
    }
    
  2. or download this
    $val = ($val) ? "defined" : "undefined";
    
  3. or download this
    if ($val) {
        $val = "defined";
    ...
    else {
        $val = "undefined";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004272]
help
Chatterbox?
[choroba]: the related discussion on Hacker news is interesting
[choroba]: not so many Perl haters so far

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-07-26 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (396 votes). Check out past polls.