
Kanji
User
/ Moderator
Jun 25, 2000, 11:12 PM
Post #2 of 3
(619 views)
|
Use the LWP::Simple module. <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> #!/usr/bin/perl -w use strict; use LWP::Simple; my $url = "http://www.perlguru.com/"; print "Content-Type: text/html\n\n"; print get( $url ) | | "Oh dear, couldn't load $url";</pre><HR></BLOCKQUOTE> Note: this board has a terribly habit of inserting spaces in the OR operator, so if you cut and paste, make sure you remove the extra space from between | |.
|