in reply to Dice.pm - I'm doing it wrong, somehow.
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dice.pm - I'm doing it wrong, somehow.
by pobocks (Chaplain) on Oct 17, 2008 at 01:51 UTC |