in reply to Regular Expression

Um...nobody suggested
(keys %{{map {$_=>1} /abc|xyz/gi}} == 2)
I wonder why.

Caution: Do not take internally.

Replies are listed 'Best First'.
Re^2: Regular Expression
by Eimi Metamorphoumai (Deacon) on Feb 09, 2005 at 22:05 UTC
    Perhaps because it would accept the text "abcABC" and reject the text "abcABCxyz"? Now, (keys %{{map {lc,1} /abc|xyz/gi}} == 2) would work...
      Touché.

      Caution: Contents may have been coded under pressure.
Re^2: Regular Expression
by Tanktalus (Canon) on Feb 09, 2005 at 22:05 UTC

    The picture you have on your home node is quite apt for this type of response. Thanks :-)