Keep It Simple, Stupid | |
PerlMonks |
Re^2: multiple method calls against the same object, revisitedby ihb (Deacon) |
on Dec 28, 2004 at 02:44 UTC ( [id://417686]=note: print w/replies, xml ) | Need Help?? |
What happens when you want to have a method without any arguments in the middle of those other methods? This problem is the reason Aristotle used array references, I think. A possible solution would be to "escape" the methods without arguments, yielding and change the implementation to (untested)
ihb Update: Apparently I should've read the code closer. The last case of a single method with no following element threw me off.
See perltoc if you don't know which perldoc to read!
In Section
Cool Uses for Perl
|
|