#!/usr/bin/perl use strict; use warnings; my $draw = [ qw( 13 15 18 22 41 48 ) ]; my $bets = [ [ qw( 09 13 18 33 39 42 ) ], [ qw( 02 18 32 36 39 42 ) ], [ qw( 05 12 21 22 28 42 ) ], [ qw( 03 14 18 33 34 36 ) ], [ qw( 15 22 26 41 38 48 ) ], [ qw( 06 14 24 26 42 48 ) ], [ qw( 10 28 30 35 36 43 ) ], [ qw( 03 05 08 14 16 35 ) ], [ qw( 08 18 21 35 46 47 ) ], [ qw( 03 15 22 25 46 48 ) ], [ qw( 01 11 38 44 45 49 ) ], [ qw( 14 23 38 39 48 49 ) ], [ qw( 07 17 21 32 45 48 ) ], [ qw( 07 36 37 39 40 41 ) ], [ qw( 07 12 20 29 36 43 ) ] ]; map { my $bet = $_; my $hits = 0; map { my $one = $_; $hits += grep { $one eq $_ } @$bet; } @$draw; print join $", @$bet, "-->", $hits, $hits > 2 ? "*" : "", "\n"; } @$bets;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Lotto checker...
by Arunbear (Prior) on Apr 15, 2014 at 15:26 UTC | |
|
Re: Lotto checker...
by bigj (Monk) on Apr 15, 2014 at 16:30 UTC | |
by kcott (Archbishop) on Apr 15, 2014 at 21:04 UTC | |
|
Re: Lotto checker...
by kcott (Archbishop) on Apr 15, 2014 at 20:43 UTC | |
by fishy (Friar) on Apr 16, 2014 at 14:22 UTC | |
by kcott (Archbishop) on Apr 16, 2014 at 22:14 UTC | |
by fishy (Friar) on Apr 17, 2014 at 17:53 UTC |