in reply to Re: how to nullify case sensitivity
in thread how to nullify case sensitivity

You forgot quotemeta :)
m/^\Q$second\E$/i

Replies are listed 'Best First'.
Re^3: how to nullify case sensitivity
by CountZero (Bishop) on Nov 24, 2010 at 14:06 UTC
    Indeed! Thank you for reminding me.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James