in reply to Conditions and Case Sensitivity

You're almost there. The /i flag gives you case insensitivity: if ($line =~ /abcd/i) {

After Compline,
Zaxo