XP is just a number | |
PerlMonks |
Re^4: in search of a more elegant if then elseby TimToady (Parson) |
on Feb 20, 2010 at 16:33 UTC ( [id://824399]=note: print w/replies, xml ) | Need Help?? |
This gets a little prettier in Perl 6, since it parses the inside of parens as a statement:
Also, you can usually omit the curlies on a do, if the insides can terminate the whole statement...which it can't if there's a modifier, as above, so we'll invert it: Of course, there's also the ternary operator, spelled ?? !!, if you want it...
In Section
Seekers of Perl Wisdom
|
|