Help for this page

Select Code to Download


  1. or download this
    
    $object->method1(@args1)->method2(@args2)->method3(@args3)
    
  2. or download this
    $chain = Object::MethodChain->method1(@args1)->method2(@args2)->method
    +3(@args3);
    
  3. or download this
    $chain = Object::MethodChain->new("method1", \@args1, "method2", \@arg
    +s2, "method3");
    
  4. or download this
    $chain = Object::MethodCall->method1(@args1)->method2(@args2);
    
  5. or download this
    Object::MethodCall->method1(@args1)
    
  6. or download this
    {
    package Object::MethodChain;
    ...
    }
    }
    
  7. or download this
    {
    package Object::MethodChain;
    ...
    DESTROY {
    }
    }
    
  8. or download this
    $chain = Object::MethodChain->foo;
    
  9. or download this
    sub { $_[0]->foo; }
    
  10. or download this
    {
    package Object::MethodChain;
    ...
    DESTROY {
    }
    }
    
  11. or download this
    {
    package Object::MethodChain;
    ...
    DESTROY {
    }
    }
    
  12. or download this
    {
    package AnObj;
    ...
     "er,\n";
    }
    }
    
  13. or download this
    {
    my $f = "foo";
    my $n = AnObj->new->$f->bar(my $v)->baz("her p");
    print $v, $n;
    }
    
  14. or download this
    {
    my $f = "foo";
    ...
    my $n = AnObj->$c;
    print $v, $n;
    }
    
  15. or download this
    {
    my $f = "foo";
    ...
    my $n = AnObj->$c;
    print $v, $n;
    }
    
  16. or download this
    bless( [
      {
    ...
        'method' => 'baz'
      }
           ], 'Object::MethodChain' );