Strange issue with perl-libwww

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

Strange issue with perl-libwww

Postby darkgeek » Sat Sep 13, 2014 1:50 pm

Hi,
I use Acrhlinux arm on my Raspebrry Pi, and installed perl-libwww via pacman yesterday. I wrote a small perl script to get a webpage's content:
$this->bbcode_second_pass_code('', '#!/usr/bin/env perl
use 5.010;
use warnings;
use strict;

use LWP::Simple qw($ua get);

my $uri = "http://www.flvcd.com/";

my $result = get($uri);
say "$result";')
It will print the webpage's content (raw html) and works great on my Fedora and ArchLinux x86-64 computer. However, it fails to work on my Raspberry pi, printing nothing on terminal and telling me $result is undef.
Then I remove the perl-libwww package by pacman, and use cpanm to install LWP::Simple. This time, to my surprise, my script works on my Raspberry pi! So, did I do something wrong? Or is this a bug of perl-libwww in our repo? Thanks. :D
darkgeek
 
Posts: 20
Joined: Fri Sep 12, 2014 2:19 am

Re: Strange issue with perl-libwww

Postby darkgeek » Mon Sep 15, 2014 2:29 am

Hi,
I post this issue on Github and find that there's a simlar issue on x86 Archlinux, so it's not Archlinux arm specific problem. 8-)
darkgeek
 
Posts: 20
Joined: Fri Sep 12, 2014 2:19 am


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 16 guests