Nov 3, 2009, 7:19 AM
Post #4 of 4
First, don't use $a or $b. Those are 2 of Perl's special built-in global vars that are used in the sort function.
Var names should describe (or give a hint) what data the var holds.
Have you read the documentation for the module? It provides several examples of its usage.
This is clearly a homework assignment, so I can't/won't provide the complete solution. But, if you give it a try and get stuck, post the updated code that you're testing with a specific question on the part that you can't figure out, I'll give you a little more guidance.