binmode STDOUT; use strict; use warnings; use IO::Socket; my $data = do{ local $/ = undef, }; my $length = length $data; my $host = "www.openligadb.de"; my $sock = IO::Socket::INET->new("$host:80") or die $@; print $sock <