On Wed, Mar 9, 2011 at 2:22 PM, Brian F. Yulga <byu...@langly.dyndns.org>wrote:
> Uri and Jim have hit upon one of my major stumbling blocks with learning > Perl. There seems to be a difference of opinion on the proper times to use > hashes vs. arrays/lists...and how best to use them. http://perldoc.perl.org/perlfaq4.html#How-can-I-remove-duplicate-elements-from-a-list-or-array%3f >>Use a hash. When you think the words "unique" or "duplicated", think "hash keys". Also the Hashes chapter of Learning Perl has a section called something like "Why use Hashes," which seems fitting enough. Same with the Hashes part of Modern Perl ( http://www.onyxneon.com/books/modern_perl/index.html ), in the "The Perl Language" chapter. For those that have heard of this book, I'm currently digesting this piece > of information: Effective Perl Programming, 2nd Ed., Item 9: "Know the difference between > lists and arrays." > See Item 13: Use arrays or hashes to group data. Also, www.effectiveperlprogramming.com. Brian.