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

Re: ?: = Obfuscation? (value)

by tye (Cardinal)
on Dec 01, 2006 at 17:25 UTC ( #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
Node Status?
node history
Node Type: note [id://587238]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-04-18 06:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (462 votes), past polls