finding a specific line in perl with out regular expressions?
I have a file that I want to read in using the File::Slurp module then search that file for a specific line. I know Perl has regular expressions but the strings I’m searching for are user generated so don’t want to have to worry about escaping everything. I could write a foreach loop to do this but was wondering if there’s a function in Perl that will do this for me? Everything I see online about finding text in Perl uses regular expressions.
finding a specific line in perl with out regular expressions?
===

I have a file that I want to read in using the File::Slurp module then search that file for a specific line. I know Perl has regular expressions but the strings I’m searching for are user generated so don’t want to have to worry about escaping everything. I could write a foreach loop to do this but was wondering if there’s a function in Perl that will do this for me? Everything I see online about finding text in Perl uses regular expressions.