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 ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-20 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found