At 22:04 +0200 5/3/1999, Carl Johan Berglund wrote: >Try > >$line =~ /^(?$case)$searchterm/ That's interesting and tho I haven't tried it yet, I see what you mean (after looking up the use of ? in this context). <RANT> My problem with this is that like so many other things in Perl, it is anti-intuitive. If modifiers go after the last /, why should a modifier that is embedded via a variable go after the first /? This strikes me as needlessly bizarre even by Perl standards. :-[ </RANT> Anyway, thanks for your suggestion. Richard Gordon -------------------- Gordon Consulting & Design Database Design/Scripting Languages mailto://maccgi@bellsouth.net 770.565.8267 ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org