Perl 6 Perl 6 #13

Chained operators

Perl 5 (and most other languages):

# test if $x between 0 inclusive and 10 exclusive
if ( 0 <= $x && $x < 10 ) ...
continued...
Copyright © 2008 Patrick Michaud