The following regex is failing strangely: my @tables = $content =~ m#\[table\](.*?)\[/table\]#g; foreach (@tables) { my $table = $_; if ($content =~ m#$table#) {print "yes old table is there!\n";} }
@tables contains 2 items (correctly) but seaching for each item in $content does not match. How can it find 2 matches and then claim that each of them aren't there? Perl 5.8.6 Mac OS X 10.3.8 Thanks bemused Angie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>