Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!perl
# open a text file - store it in $buffer
open(IPF,"<some_file_name") or
die "Failed to open input file, $!\n";
while (<IPF>) { $buffer .= $_; }
close IPF;
# open an output file to write to.
open(OPF,">some_other_file_name") or
die "Failed to open output file, $!\n";
# search for a given word
$search_word = 'the'; # probably find that one once of twice
while ($buffer =~ /\b$search_word\b/i) { print OPF "the\n"; }
close OPF;