Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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*

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://267613]
help
Chatterbox?
[stevieb]: Finally, somehow, fried my first Raspberry Pi :) It was one I was using in a mock grow room with no protection, so I think humidity got to it.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2018-01-16 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (192 votes). Check out past polls.

    Notices?