Chas. Owens wrote:
On 4/3/08, Jim <[EMAIL PROTECTED]> wrote:
how do I extract the actual mp3 URL from $response->content?
<snip>
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 on CPAN).
Since the HTML markup is not used to identify the contents of interest,
this is not HTML parsing. A regex should be sufficient.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/