ATS on Tue, 22 Feb 2000 17:15:26 -0500 (EST) |
At 04:47 PM 02/22/00 -0500, you wrote: use .'\+\+\+' note single quotes it produces Got a match with foo+++ and foo Got a match with bar+++ and bar Urb #!/usr/bin/perl @group1 = qw(foo foofoo foo+++ bar bar+++ foobar); @group2 = qw(foo bar); foreach $teststring (@group1) { foreach $searcher (@group2) { $alteredsearcher = $searcher . "+++"; if ($teststring =~ /$alteredsearcher/) { print "Got a match with $teststring and $searcher\n"; } } } #!/usr/bin/perl
|
|