Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: chaining method calls

by particle (Vicar)
on Jun 20, 2003 at 14:50 UTC ( #267613=note: print w/ replies, xml ) Need Help??

in reply to chaining method calls

i'm a fan. it makes client interfaces easy to implement. and since i haven't seen it mentioned in this thread, i thought you might find Want of interest. context is everything!

use Want; sub foo { my( $self, @args )= @_; $self->munge(@args); return $self if want('OBJECT'); return @args; }

~Particle *accelerates*

Comment on Re: chaining method calls
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://267613]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-11-30 22:28 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls