in reply to Perl string matching pl

if ($searchThisLine =~ m/$searchArg/i)
The /i flag enables case-insensitive matching. So, the PL in EMPLOYEE matches m/pl/i. See perlre

If you only want to match lower-case pl, use: m/$searchArg/