Welcome to the Monastery | |
PerlMonks |
Re: What way to weigh an AoA?by Zaxo (Archbishop) |
on May 17, 2006 at 00:43 UTC ( [id://549925]=note: print w/replies, xml ) | Need Help?? |
I think use warnings; and use strict; would go a long way toward solving this for you. You call your arrayref $user sometimes, and some of those may be in the code. The last index of $users will be in $#$users, not $$#users. Observe, I'm not entirely sure what $$#users represents, but that explains your extra array elements. I'm leery of your hash keyed to surname. When you insert Minnie, Mickey will get clobbered. After Compline,
In Section
Seekers of Perl Wisdom
|
|