Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Is Perl a good career move?

by Anonymous Monk
on Jan 02, 2008 at 20:05 UTC ( #660049=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Is Perl a good career move?
in thread Is Perl a good career move?

($foo = bar()) || ($foo = $baz); $foo = (($bar = bar()) ? $bar : $baz); The key is that the || casts the right hand side as a boolean, and php does not have a magic variable that gets set while you aren't looking.


Comment on Re^5: Is Perl a good career move?
Re^6: Is Perl a good career move?
by Juerd (Abbot) on Jan 04, 2008 at 00:46 UTC
    That is incredibly ugly, and no "magic variable that gets set" is even RELEVANT in this discussion.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-05 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls