Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2014-09-02 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls