I don't think calling 'eval' is a good way to solve this, since the argument could contain all sorts of things, not just a well-behaved regexp. We need to somehow convert the string to a regexp using a function from perlguts. Unfortunately I could work out how to actually do this, so it needs a bit more examination from someone with the relevant Perl skills. Rich. -- Richard Jones Red Hat