in reply to Re^3: [OT] Python to Perl.
in thread [OT] Python to Perl.

IMHO the main advantage of these kind of ranges is that you can easily partition ranges in smaller ones:

[0..9[ = [0..3[ + [3..6[ + [6..9[ (pseudocode!)

This "scales" well (in a mathematical sense) without needing to add or subtract at the edges, hence less error prone.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery