in reply to mixed case with match

It might also be useful to include some boundary assertions to avoid hitting on words like "perlaceous" or "properly" (untested):
    m{ (?i) \b perl \b }xms
(I prefer to use the inline (?i) rather than the /i modifier: I think it's more noticeable.)


Give a man a fish:  <%-{-{-{-<