Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Style - how to give class method call as parameter

by strat (Canon)
on Jun 26, 2012 at 13:13 UTC ( #978412=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $success = $deployer->extend_order_lease( $order, $end_date );
    
  2. or download this
    my $success = $self->do_method_with_timeout(
        $timeout, $deployer => extend_order_lease => ( $order, $end_date )
    );
    
  3. or download this
    my $success = $self->do_method_with_timeout(
        $timeout, $deployer, 'extend_order_lease', $order, $end_date );
    
  4. or download this
    my $success = $self->do_sub_with_timeout(
        sub {
            return $deployer->extend_order_lease( $order, $end_date ); 
        }, $timeout,  );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://978412]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2015-07-28 10:55 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 (254 votes), past polls