
johnny241088
Novice
Feb 15, 2013, 4:25 PM
Post #1 of 7
(301 views)
|
|
how to import a URL???
|
Can't Post
|
|
I try tu read in a URL with this code
use strict; use warnings; use LWP::Simple; my $local = "pcw.txt"; print "Bitte URL eingeben\n"; #Liest nur die Startseite ein my $url = <STDIN>; my $page = get($url) or die "failed!\n"; open my $out, '>', $local or die "Cannot open $local for output: $!\n"; print $out $page; close $out; but my problem is i receive (not become) ;) only the source code of the starting site and not of the hole url, but why???
(This post was edited by johnny241088 on Feb 16, 2013, 12:18 PM)
|