Help for this page
{ open(FILE, "sample.txt") or die "Can't open sample.txt\n"; ... if($lines =~ /foo/) { print "A match was found\n" }
$lines =~ s/foo/bar/gms;