Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: ?: = Obfuscation? (value)

by tye (Sage)
on Dec 01, 2006 at 17:25 UTC ( [id://587238]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $x= cond() ? this() : that();
    # vs.
    ...
    } else {
        $x= that();
    }
    
  2. or download this
    my $x= cond() ? this() : that();
    # vs.
    ...
    } else {
        $x= that();
    }
    
  3. or download this
    $x= cond() ? this() : that();
    # vs.
    ...
        }
    }
    $x= pick();
    
  4. or download this
    my $x= DoSomething(
        cond() ? this() : that(),
    ...
        foo() ? bar() : baz(),
        $blah,
    );
    
  5. or download this
    s{
        # Some fairly complex parsing regex
    ...
            "somethingElse";
        }
    }gex;
    

Log In?
Username:
Password:

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

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

    No recent polls found