in reply to Re: match lines containing state abbreviation
in thread match lines containing state abbreviation

this worked
my $match = "AZ"; my $content = $mech->content; my @lines = split /^/, $content; my @keepers = grep {/\Q$match\E/} @lines; print @keepers;