merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
I am using an implementation of Perl which is supplied by a commercial organization so that I can run their application based on Perl.Therefore I have no detailed knowledge about how to add facilities such as LWP::UserAgent. However, I did try but found I after I had added a Perl module yet another Perl module was required. For example, when using the Perl supplied by tangent I now get the following message: “LWP will support https URLs if the LWP::Protocol::https module is installed.” I did not get to a successful conclusion. I have a new set of Perl installed so that all that I added (very likely incorrectly) is no longer there. Therefore I want to try again. Can a monk give me the steps so that I can do whatever is necessary to get LWP::UserAgent (taking into account the message I got when trying the Perl sent by tangent) and any required Perl modules added to my version of Perl?use LWP::UserAgent; my $url = 'http://www.bbc.co.uk/radio4/programmes/schedules/fm/2015/10 +/13'; my $ua = LWP::UserAgent->new(ssl_opts => {verify_hostname => 0}); my $res = $ua->get( $url ); my $html = $res->content; print $html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: BBC4 Radio Schedules and LWP:UserAgent problem
by hippo (Archbishop) on Apr 07, 2018 at 13:51 UTC | |
by mr_ron (Deacon) on Apr 07, 2018 at 15:02 UTC | |
by Anonymous Monk on Apr 07, 2018 at 15:17 UTC | |
by hippo (Archbishop) on Apr 07, 2018 at 16:43 UTC | |
by Anonymous Monk on Apr 07, 2018 at 21:16 UTC | |
by poj (Abbot) on Apr 08, 2018 at 08:21 UTC |