in reply to Re: Object method prototypes?
in thread Object method prototypes?
When I need more than 2 or so parameters I tend to use this construct:
Saves typing and IMHO is nicer to look at at both sides.sub my_method { my ($self,%args) = @_; # now do stuff with $self and %args } # which is called as $object->my_method( foo => $value, bar => $bee );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Object method prototypes?
by Puny Human (Initiate) on Dec 14, 2007 at 01:39 UTC | |
by mreece (Friar) on Dec 14, 2007 at 02:32 UTC | |
by ysth (Canon) on Dec 14, 2007 at 05:22 UTC | |
by blazar (Canon) on Dec 14, 2007 at 15:41 UTC |