Help for this page

Select Code to Download


  1. or download this
    Array found where operator expected at RPG/Dice.pm line 11, at end of 
    +line
            (Do you need to predeclare our?)
    ...
    syntax error at RPG/Dice.pm line 11, near "our @ISA "
    syntax error at RPG/Dice.pm line 25, near "our @EXPORT_OK "
    BEGIN failed--compilation aborted at test.pl line 5.
    
  2. or download this
    #!perl
    
    ...
    print qq(Result: ), RPG::Dice::computeDice("2d4+1"), qq(\n);
    
    exit(0);
    
  3. or download this
    package RPG::Dice;
    
    ...
    perl(1).
    
    =cut