Challenges

1. Determine max or min values of a list with the numbers 0 7 5 3 22 23 11 34 51 32 5 3 1


2. Determine the character with the lowest or highest ASCII value of a list with the characters z, c, m


3. How do two strings differ?


4. What do the two arrays ('a b c d' and 'c d e f') have in common and how do these arrays differ?


5. Encode strings like 'Voilà un gâteau étonnant à la crème brûlée' with HTML entities.  


6. Rounding numbers.  


7. Remove all whitespaces.  


8. Text file statistics: number of words, characters, spaces and average word length.  


9. Text file replacement  


10. Convert non-ASCII characters (e.g. gyönyörű élményekkel 😊) to their ASCII equivalents  


11. Manipulate number format (e.g. 12.6789012 -> 12.68 and 12345.679 -> 12,345.7 ).  


12. Calculate average math score from a CSV file; format each CSV row: name;score_1;score_2;score_3.  


13. Merge the items a b c d from array_1 with the items 1 2 3 4 from array_2. The result should be: a1b2c3d4. Find a suitable module.  


14. Center a string in your terminal screen (width >= 80 pixels and exit if width < 80). Use Term::Size to retrieve the terminal size on Unix (or Term::Size::Win32 on Windows). Test your program with several screen sizes.