Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 scrutinizing the Monastery: (12)
As of 2014-12-26 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls