use strict; use warnings; use feature 'say'; for my $string () { chomp $string; if ( $string =~ / (?