Re: Using PERL to retrieve MP3s

2008-04-04 Thread Gunnar Hjalmarsson
Jim wrote: Can you tell me which is the best repository to use? The ActiveState one does not seem to have most of the modules I need. Really? Can you give us examples of such modules? This is one of the AS repositories I'm using: http://ppm4.activestate.com/MSWin32-x86/5.10/1002/ -- Gunnar

Re: Using PERL to retrieve MP3s

2008-04-04 Thread Jim
Thanks all. Can you tell me which is the best repository to use? The ActiveState one does not seem to have most of the modules I need. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Using PERL to retrieve MP3s

2008-04-03 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On 4/3/08, Jim <[EMAIL PROTECTED]> wrote: how do I extract the actual mp3 URL from $response->content? my ($url) = $response->content =~ /http:\S+?\.mp3/; and a regex is not necessarily the best way to parse HTML (consider using HTML::Parser* or one if the other modules

Re: Using PERL to retrieve MP3s

2008-04-03 Thread Chas. Owens
On Thu, Apr 3, 2008 at 5:10 PM, Mark Wagner <[EMAIL PROTECTED]> wrote: > 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,

Re: Using PERL to retrieve MP3s

2008-04-03 Thread Mark Wagner
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 regu