programming-examples/perl/Network/Retrieving a Web Page with get().pl

10 lines
183 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/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";
}