Too much code - slicing

John Bokma john at
Thu Sep 23 06:21:28 CEST 2010

Seebs <usenet-nospam at> writes:

> I dunno.  I like the "next if /^$/" idiom,

I don't (as a Perl programmer), I prefer:

$line =~ /^$/ and next;


$line ne '' or next;

which I read as: line must not be empty

John Bokma                                                               j3b

Blog:    Facebook:
    Freelance Perl & Python Development:

More information about the Python-list mailing list