> -----Original Message----- > From: Martin Moss [mailto:suppressed > What I would like to do is test if $string contains one of the patterns > in the pattern match and then carry out a function based upon which > pattern is matched... > Any ideas? > > > perldoc perlre [look for Backtracking] this doesn't require backtracking to work just do my ($match) = ($string =~ /(google|yahoo)/i)
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.