Perl 6 Perl 6 #14

Chained operators, cont'd

Perl 5:

if ( 1 <= $roll1 && $roll1 <= 6 && $roll1 == $roll2 )
    { print "Doubles!"; }
continued...
Copyright © 2008 Patrick Michaud