Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re (tilly) 5: Dice::Dice

by tilly (Archbishop)
on Jan 09, 2001 at 01:00 UTC ( [id://50563]=note: print w/replies, xml ) Need Help??


in reply to Re: Re (tilly) 3: Dice::Dice
in thread Dice::Dice

The following code is what bothered me:
my %defaults = $caller_is_obj ? %$caller_is_obj : %_default_data;
Instead of that do the following:
my %defaults = $caller->get_default();
and in your module define a get_default() method that returns the same data you put in %_default_data.

Either that or change to:

my %defaults = $caller_is_obj ? %$caller : %_default_data;
(which upon reflection is more likely what you meant).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://50563]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found