Feb 15, 2013, 4:25 PM
Post #1 of 7
I try tu read in a URL with this code
how to import a URL???
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;
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)