NAME

lottery-big-drawl.pl

VERSION

version 1.04

About

This script will display information about lottery games, pick numbers to play, and check numbers from a file.

Usage

# pick 5 Megamillions games output data to mypicks.ticket
# if no file picks display to STDOUT only.
lottery-big-draw.pl --pick 5 --game MegaMillions --file mypicks.ticket

# check winners for file mypicks.ticket
lottery-big-draw.pl --winners "01 02 03 04 05 [06]" --file mypicks.ticket
lottery-big-draw.pl -w winners.ticket -f mypicks.ticket

# estimate expected value of a PowerBall ticket given the cash jackpot
# value of 1.6 bln (value can be given in millions or dollars)
lottery-big-draw.pl -g PowerBall -t 1600

# custom games can be created with the custom type and options.

lottery-big-draw.pl -g Custom --wb 50 --dwb 5 --rb 30 --drb 1 -p 1 -f $filepath \
  --custname "My Custom Lottery"  

# Basic draw games use only the whiteballs.

lottery-big-draw.pl -g draw --wb 50 --dwb 5 -p 10

Additional Documentation

lottery-big-drawl.pl us bundled with Game::Lottery, additional information can be obtained with the command perldoc Game::Lottery. The file format is detailed there.

Command Line Options

lottery-big-draw.pl [-fghptw] [long options...]

  --pick INT (or -p)         Pick Numbers requires the number of picks
                              to make
  --file STR (or -f)         file containing picks to check (or write to)
  --winners STR (or -w)      String containing winning picks or
                              location of file containing winners
  --ticketvalue STR (or -t)  determine expected value of each ticket
                              given cash value of jackpot
  --game STR (or -g)         the game: Draw, Custom, PowerBall or
                              MegaMillions
  --custname STR             Optional Name for a custom game
                              aka --cn
  --whiteballs INT           For Draw or Custom game, number of white balls
                              aka --wb
  --drawwhiteballs INT       For Draw or Custom game, number of white
                              balls to draw
                              aka --drawhiteballs, --dwb
  --redballs INT             For Custom game, number of red balls
                              aka --rb
  --drawredballs INT         For Custom game, number of red balls to draw
                              aka --drb

  --help (or -h)             print usage message and exit