Cool/useful short examples of Perl?
Paul Makepeace
paulm at paulm.com
Wed Jun 8 09:33:43 BST 2011
On Wed, Jun 8, 2011 at 08:31, Abigail <abigail at abigail.be> wrote:
> On Wed, Jun 08, 2011 at 07:46:52AM +0200, Richard Foley wrote:
>> I've found a lot of German programmers very uncomfortable with the "unless"
>> keyword, (or maybe it's just c programmers). They appear to very often prefer
>> to use a construct of the form:
>>
>> if ( !something ) { ...
>>
>> Even worse is:
>>
>> unless ( !something ) { ...
>>
>> The brain just into tailspin goes.
>
>
> unless (!something) {
> ...
> }
> else {
> ... # Unless not something isn't true.
dont(...);
> }
Joking aside, I wonder if part of the confusion with unless is that
it's usually associated with some kind of negative when it's in the
prefix form "Unless .... (you'll be in trouble | don't ... | ruh-roh)"
Paul
More information about the london.pm
mailing list