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 ) ...

Perl 6:

if ( 0 <= $x < 10 ) ...
Copyright © 2008 Patrick Michaud