Cool/useful short examples of Perl?

Denny 2011 at
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 :

More information about the mailing list