NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Changing the core (Score:3, Insightful)
Reply to This
Re:Changing the core (Score:2, Informative)
Generally, if you're modifying a class that isn't yours then you
should only be adding stuff that's really generic. For example,
a binary search to Array.
Otherwise, you should be making your own Array subclass.
I wouldn't be surprised if someone's already implemented
a bsearch (in fact, I think Hal Fulton has one in "The Ruby Way").
Ideally someone would be collecting these useful generics into
a package, somewhere. Think List::Util =)
But, yeah, it can go to hell.
---ict / Spoon