I like print if m// partly because it reads better in my mind. I don't like m// && print because it is very idiomatic and no shorter than print if m//.
I like $var = shift || 'default' because it also reads naturally.
If you have to explain idioms to non perlers use the common programing idioms of if/then/else...
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: Spoken Perl: and && or what?
by tachyon
in thread Spoken Perl: and || && or what?
by Zaxo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |