Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: OO sub, hash or hash reference.by dragonchild (Archbishop) |
on Feb 18, 2002 at 15:07 UTC ( [id://146158]=note: print w/replies, xml ) | Need Help?? |
There's a few ways you could do it. I'd do it as such:
Of course, you can add more checks and lots of cool stuff. But, that's basically the idea. ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|