QuoteStopping: 'install' failed for 'M/MS/MSOUTH/ParallelUserAgent-2.61.tgz'.
Failed during this command:
MSOUTH/ParallelUserAgent-2.61.tgz : make_test NO one dependency not OK (LWP::Protocol::https10); additionally test harness failed
Quotecpan> install LWP::Protocol::https10
Running install for module 'LWP::Protocol::https10'
The module LWP::Protocol::https10 isn't available on CPAN.
Either the module has not yet been uploaded to CPAN, or it is
temporary unavailable. Please contact the author to find out
more about the status. Try 'i LWP::Protocol::https10'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
#!/usr/bin/perl use strict; use warnings; use 5.010; require LWP::UserAgent; foreach my $url ('http://www.google.de','https://www.youtube.com/') { my $pid; # Vater if ($pid = fork()) { say 'wie kann man hier feststellen, ob beide Soehne fertig sind?'; } # Sohn else { my $ua = LWP::UserAgent->new; my $response = $ua->get($url); if ($response->is_success) { say $url.' liefert '.length($response->decoded_content).' Byte'; } else { die 'Fehler '.$response->status_line.' in '.__LINE__; } } }
Quotewie kann man hier feststellen, ob beide Soehne fertig sind?
wie kann man hier feststellen, ob beide Soehne fertig sind?
http://www.google.de/ liefert 19485 Byte
wie kann man hier feststellen, ob beide Soehne fertig sind?
https://www.youtube.com/ liefert 327637 Byte
https://www.youtube.com/ liefert 371774 Byte