on 03/05/2001 01:47 PM, Ronald J Kimball at [EMAIL PROTECTED] wrote: > > In 5.004/MacPerl, try this instead: > > $_ = 'Yet Another Perl Hacker'; > $switch = 'i'; > print /(?$switch)PERL/'Y':'N'; > > > (?imsx) was in 5.004; (?imsx:PATTERN) was added later. > > > Ronald you forgot an additional '?' ;) print /(?$switch)PERL/ ? 'Y':'N'; # ^ This does work however in 5.004 MacPerl. Thanks for the heads-up :) -- Scott R. Godin | e-mail : [EMAIL PROTECTED] Laughing Dragon Services | web : http://www.webdragon.net/
- [MacPerl] Setting regex switch programmaticaly Giorgio Valoti
- Re: [MacPerl] Setting regex switch programmaticaly Bart Lateur
- Re: [MacPerl] Setting regex switch programmaticaly Chris Nandor
- Re: [MacPerl] Setting regex switch programmaticaly Ronald J Kimball
- Re: [MacPerl] Setting regex switch programmatica... Scott R. Godin
- Re: [MacPerl] Setting regex switch programmaticaly Giorgio Valoti
- Re: [MacPerl] Setting regex switch programmaticaly Bart Lateur
- Re: [MacPerl] Setting regex switch programmatica... Giorgio Valoti
- Re: [MacPerl] Setting regex switch programmatica... Chris Nandor