I am trying to find if a line "genman.py" exists in a file "C:\python.py".Can someone suggest how can I do that?
use strict; use warnings; my $gen_build_man = C:\python.py open my $GENMAN, '<', "$gen_build_man" or die "could not open $gen_bui +ld_man - $!"; while (<$GENMAN>) { #check if it has the line "genman.py" }
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |