. . . for convenience, it be great to have something like, setDate($year,$month,$day)
Better still is to have a setDate method take a DateTime object, or one of CPAN's multitude of other Date objects, if you really want to.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Re: OO Getters/Setters
by hardburn
in thread OO Getters/Setters
by theAcolyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |