in reply to Grouping Objects by Attribute
As you've received excellent answers above, this is a general comment. You're basically asking if you can drive a car without a rearview mirror. Well, yes, you can. But, it's a really dumb way to drive a car.
References are an integral part of Perl5, and should be treated as another tool in your toolbox, not as something to be feared and shunned. They are the way to create multi-level data structures1. Period.
The Perl Cookbook generally has the best-of-breed way of doing task XYZ. It's the reason it's the cookbook. So, I'd trust it.
Now, I'm not saying "Don't question the wisdom", by any means. But, for most questions, you'll get the answer "The wisdom is right." *grins*
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|