use strict; use warnings; use 5.010; my $string = <## Example 1: match: '413-577-1234' Example 3: match: '413.233.2343' Example 4: match: '562-3113' Example 5: match: '401 311 7898' Example 7: match: '1 (413) 555-2378' Example 8: match: '4135552378' Example 9: match: '413 789 8798'