Message-ID: <lemV8gzkgu/K092yn@efn.org>
p4raw-id: //depot/perl@14497
sub config_re {
my $re = shift;
- my @matches = ($config_sh =~ /^$re=.*\n/mg);
+ my @matches = grep /^$re=/, split /^/, $config_sh;
@matches ? (print @matches) : print "$re: not found\n";
}