On Mon, Mar 05, 2001 at 10:50:07AM +0100, Bart Lateur wrote: > In 5.6.0: > > $_ = 'Yet Another Perl Hacker'; > $switch = 'i'; > print /(?$switch:PERL)/?'Y':'N'; > --> > Y > > But, it doesn't work in 5.004/MacPerl. > 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
- [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