in reply to problem with parsing
You need to parse the string first. Use split with ' ' and store the data in an array and sort it. Don't forget to chomp strings if you read the data from a file. Try to solve the problem step by step, use lots of prints to check what your script is doing and you will see that it is easier than you thought
Now if you have any more questions, just post what you have done already and we can help you. But please remember, we are not here to do the homework for you, we only try to help *you* write the code.
|
|---|