Cool/useful short examples of Perl?

Paul Makepeace paulm at paulm.com
Tue May 31 15:18:05 BST 2011


On Tue, May 31, 2011 at 15:02, David Cantrell <david at cantrell.org.uk> wrote:
> On Mon, May 30, 2011 at 04:27:30PM +0100, Denny wrote:
>> On Mon, 2011-05-30 at 15:36 +0100, David Precious wrote:
>> > if (! Email::Valid->address($email_address) ) {
>> Something wrong with 'unless'?
>
> Yes.  Most of the time you'll either have an 'else' or want to add it
> later, and unless ... else is Just Wrong.

That's the main problem with unless - once you've written your
conditional that way, it's impossible to change it.

P



More information about the london.pm mailing list