Just to blur the lines a little :)
print do{ if( $_ ) { 'fred' }else{ 'bill' } } for 0, 1;; bill fred
In reply to Re^3: in search of a more elegant if then else
by BrowserUk
in thread in search of a more elegant if then else
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |