GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ROLL (1)

.ds Aq ’

NAME

roll - Command line interface for dice rolls

CONTENTS

VERSION

version 0.045

SYNOPSIS



    # Evaluate these command line params
    roll 3d6 2d8

    echo "5d6" > f
    echo "2d4+1" >> f

    # Read the contents of f from STDIN
    roll < f

    # Evaluate 1d100 and open file f
    roll d% f



OVERVIEW

This is a command line interface to the Games::Dice library. It takes die rolling specifications in the form of adb[+-*/b]c.

(This specification may change a bit over time, but not radically.)
o a is optional and defaults to 1; this is number of dice to roll.
o b is the number of sides on each die. ’%’ is shorthand for 100.
The optional end modifies the sum of the rolls. ’b’ means take the best c rolls and sum them. Also ’/’ truncates the result to an integer after division.

Dice specifications can be piped in, given on STDIN or as positional parameters from the command line.

If a positional parameter matches a file name, it will be opened and each line of the file evaluated.

AUTHORS

o Philip Newton <pne@cpan.org>
o Ricardo Signes <rjbs@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 1999 by Philip Newton.

This is free software, licensed under:



  The MIT (X11) License



Search for    or go to Top of page |  Section 1 |  Main Index


perl v5.20.3 ROLL (1) 2015-04-27

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.