PerlSufi has asked for the wisdom of the Perl Monks concerning the following question:
my $match = "AZ"; my $content = $mech->content; my @lines = split /^/, $content; my @keepers = grep { $match } @lines; foreach my $line (@keepers){ print $line; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: match lines containing state abbreviation
by davido (Cardinal) on Apr 18, 2013 at 17:31 UTC | |
|
Re: match lines containing state abbreviation
by kcott (Archbishop) on Apr 18, 2013 at 17:35 UTC | |
by PerlSufi (Friar) on Apr 18, 2013 at 18:04 UTC | |
by PerlSufi (Friar) on Apr 18, 2013 at 17:47 UTC | |
by kcott (Archbishop) on Apr 18, 2013 at 18:20 UTC |