|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Accessing or printing key and valueby GrandFather (Cardinal) |
| on Dec 11, 2012 at 01:20 UTC ( #1008202=note: print w/ replies, xml ) | Need Help?? |
|
Your code, your sample data and your question are so far apart that in the end I decided to ignore your code and produced the following sample for you to consider:
Prints:
I can't tell which field you really want to sort on so I took a guess. As others have suggested: you should always use strictures (use strict; use warnings;). Also, remove code that is no longer relevant (use a revision control system if you think you may need to go back to a past version of the code) and find an indentation scheme that works for you and stick with it. Consistent and accurate indentation can make your code much easier to understand!
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||