Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 romping around the Monastery: (4)
As of 2014-09-20 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls