You are not logged in.

#1 2007-07-05 17:49:10

warlord
Member
Registered: 2007-07-04
Posts: 58

Problem with perl-libwww package and perl script

Hi.

I want to play some mms radio streams and because of the streams format, I cant use ant of my players (player stops and thats because there is a first stream that redirects to the real stream).

The only solution I found is a perl script that does the job.

#!/usr/bin/perl -w
 
 use strict;
 
 # note mms replaced with http
 my $url = "http://best.live24.gr/best1222";
 my @r;
 grep { m|Ref\d+?=(http://.*)|i && push @r, $1; } `GET $url` || die "error fetching first page: $!\n";
 
 exec "mplayer $r[0]\n";

I found the script at http://www.linuxquestions.org/questions … ?p=2603882.


The problem is that when I execute it, I get

$ perl -w mms.pl
Can't exec "GET": No such file or directory at mms.pl line 8.
error fetching first page: No such file or directory

This error is about missing the GET tool which is supposed to be included in perl-libwww just like in ubuntu (libwww-perl ), but in Arch it is not there...




Is this a package error?
Don΄t know much about perl.
Any other ideas?

Last edited by warlord (2007-07-05 17:51:32)

Offline

Board footer

Powered by FluxBB