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/


Reply via email to