Too much code - slicing
John Bokma
john at castleamber.com
Thu Sep 23 00:21:28 EDT 2010
Seebs <usenet-nospam at seebs.net> writes:
> I dunno. I like the "next if /^$/" idiom,
I don't (as a Perl programmer), I prefer:
$line =~ /^$/ and next;
Or:
$line ne '' or next;
which I read as: line must not be empty
--
John Bokma j3b
Blog: http://johnbokma.com/ Facebook: http://www.facebook.com/j.j.j.bokma
Freelance Perl & Python Development: http://castleamber.com/
More information about the Python-list
mailing list