Are you sure that your "use Games::Dice" is using your Games::Dice, and not the original one (which I presume you installed from CPAN?)
Note that copying and adding functions to the copy isn't the best way of extending a module. I would either write a Games::Dice::Whitewolf which would either has a package Games::Dice::Whitewolf, which uses Games::Dice and (re)exports its functions, and has roll_whitewolf, or adds 'roll_whitewolf' to @Games::Dice::EXPORT_OK and has a Games::Dice::roll_whitewolf.
In either case, if the original Games::Dice gets updated, you don't have to change your code (assuming it doesn't change its API).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.