in reply to Re: Re (tilly) 3: Dice::Dice
in thread Dice::Dice
Instead of that do the following:my %defaults = $caller_is_obj ? %$caller_is_obj : %_default_data;
and in your module define a get_default() method that returns the same data you put in %_default_data.my %defaults = $caller->get_default();
Either that or change to:
(which upon reflection is more likely what you meant).my %defaults = $caller_is_obj ? %$caller : %_default_data;
|
|---|