programming-examples/perl/Network/Retrieving a Web Page with get().pl
2019-11-15 12:59:38 +01:00

10 lines
183 B
Perl

#!/usr/bin/perl -w
use LWP::Simple;
use strict;
my $webpage = get("http://www.demo.org/");
if (($webpage) && (grep {/Steve/} $webpage)) {
print "I found the text\n";
}