Perl weekly challenge 100
We are finally here - we have hit week 100 of Manwar's Perl Weekly Challenges, and here are solutions to this weeks challenges from the Perl Weekly Challenge.
You can find my full code on Github
Task 1: Fun time
You are given a time (12 hour / 24 hour). Write a script to convert the given time from 12 hour format to 24 hour format and vice versa. Ideally we expect a one-liner.Example 1: Input: 05:15 pm or 05:15pm -> Output: 17:15 Example 2: Input: 19:15 -> Output: 07:15 pm or 07:15pm
