Cool/useful short examples of Perl?
Christopher Jones
c.jones at ucl.ac.uk
Tue May 31 15:40:48 BST 2011
On 31 May 2011, at 15:18, Paul Makepeace wrote:
> 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
I see that as a feature, not a problem.
Chris
More information about the london.pm
mailing list