|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^3: new way to code html?by Anonymous Monk |
| on Nov 21, 2012 at 08:23 UTC ( #1004868=note: print w/ replies, xml ) | Need Help?? |
|
use of the ternary for simple conditionals is a handy trick to have up your sleeve. I'd worry about having a grasp of the language (context, syntax) before worrying about micro-optimizations -MO=Deparse,-p says
More clearly ((int(rand(2)) ? ($foo = 1) : $bar) = 1); is which is an error
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||