Package Variable Defaults
package Your::Point; use Badger::Class version => 2.718, debug => 0, base => 'Badger::Base', config => 'x|class:X y|class:Y', set_methods => 'x y', init_method => 'configure', throws => 'point', vars => { X => 0, Y => 0, };
Thus Spake Andy:
Badger::Class also has a vars hook to defined package variables.
It's just like saying use vars expect that you can declare variables
and define values for them at the same time. The above example has the
same end result as the one on the previous page.