On 4/3/08, Jim <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I am trying to write a PERL script to retrieve a couple of podcasts
>  per week.
>
>  Using use XML::RSS::TimingBot I can retrieve and print the .rss file,
>  but how do I extract the actual mp3 URL from $response->content?

Using a suitable regular expression.  Without knowing what
$response->content contains, I can't be sure if there's a better
solution, but

my ($url) = $response->content =~ /http:\S?\.mp3/;

should work.

-- 
Mark

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to