Perl Weekly Challenge 110: Valid Phone Numbers and Transposed File
These are some answers to the Week 110 of the Perl Weekly Challenge organized by Mohammad S. Anwar.
Spoiler Alert: This weekly challenge deadline is due in a couple of days (May 2, 2021). This blog post offers some solutions to this challenge, please don’t read on if you intend to complete the challenge on your own.
Task 1: Valid Phone Numbers
You are given a text file.
Write a script to display all valid phone numbers in the given text file.
Acceptable Phone Number Formats:
+nn nnnnnnnnnn
(nn) nnnnnnnnnn
nnnn nnnnnnnnnn
Input File:




