Cool/useful short examples of Perl?

Denny 2011 at denny.me
Mon May 30 19:56:49 BST 2011


On Mon, 2011-05-30 at 19:35 +0100, Jason Clifford wrote:
> On Mon, 2011-05-30 at 16:27 +0100, Denny wrote:
> > >     if (! Email::Valid->address($email_address) ) {
> > 
> > Something wrong with 'unless'?
> 
> No but lots of people appear to find "if" to be more readable

It's not a choice between 'if' and 'unless' though, it's a choice
between 'if not' and 'unless'.  I'm honestly very surprised that any
native English speaker would find 'if not' more readable than 'unless'.

Which reminds me, 'not' is also more readable than '!', while we're on
the subject.  :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://london.pm.org/pipermail/london.pm/attachments/20110530/9bff557f/attachment.pgp


More information about the london.pm mailing list