IMDB::Film v0.15 Released

Yeasterday I released a new version of IMDB::Film – Perl extension to the IMDB movie database. Changes are not so many but they affect base fuctionality.
1) Added possibility to process stored movie HTML page. I though abount it at the beggining but after request Branislav Gerzo I realised to implement this feature.
2) Switched from LWP::UserAgent to LWP::Simple. Basically, I need just retrieve a page from IMDB and I’m not interesting about the rest. But I used LWP::UserAgent because I needed to specify proxy address. Recenly I’ve found interestin thing about LWP::Simple. It exports the function get() (it's well known fact) but also it exports a reference on User Agent object $ua. In other words, LWP::Simple can easy replace more complicated LWP::UserAgent:

use LWP::Simple qw(get $ua);
$ua->env_proxy;
$ua->timeout(10);
my $page = get('some URL');

3) I decided it’s good to add possibility specify timeout and user agent for HTTP request.
4) I completely changed the test suit. Now it uses modern style and it’s more correct and flexible.

Get and test the latest version of IMDB::Film from CPAN.

Leave a Reply

Your email address will not be published. Required fields are marked *