Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Help Me Name DBIx::Connector Methods

by Theory (Beadle)
on Oct 13, 2009 at 19:35 UTC ( #800959=perlnews: print w/ replies, xml ) Need Help??

Over on my blog, I've posted a request for method-naming help. I'd love comments from the monastery, as well.

—Theory

Comment on Help Me Name DBIx::Connector Methods
Replies are listed 'Best First'.
Re: Help Me Name DBIx::Connector Methods
by moritz (Cardinal) on Oct 13, 2009 at 22:06 UTC
    I agree with Tim Bunce's comment on your blog that a single function which options is the best solution.

    Using $obj->run::retry is a rather bad idea IMHO, because it breaks subclassing.

    Perl 6 - links to (nearly) everything that is Perl 6.
Re: Help Me Name DBIx::Connector Methods
by ctilmes (Priest) on Oct 14, 2009 at 00:17 UTC
    $obj->run(sub {}) $obj->run(-txn => 1, sub {}); $obj->run(-svp => 1, sub {}); $obj->run(-retry => 1, sub {}); $obj->run(-txn => 1, -retry => 1, sub {}); ...
    or even set the options separately:
    $obj->runopts(-txn => 1, -retry => 1); $obj->run(sub {});

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2015-07-31 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls