The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

IMDB::Persons - Perl extension for retrieving movies persons from IMDB.com

SYNOPSIS

        use IMDB::Persons;

        my $person = new IMDB::Persons(crit => '0000129')

        or 

        my $person = new IMDB::Persons(crit => 'Tom Cruise');

        if($person->status) {
                print "Name: ".$person->name."\n";
                print "Birth Date: ".$person->date_of_birth."\n";
        } else {
                print "Something wrong: ".$person->error."!\n";
        }
  

DESCRIPTION

IMDB::Persons allows to retrieve an information about IMDB persons (actors, actresses, directors etc): full name, photo, date and place of birth, mini bio and filmography.

Object Private Methods

_init()

Initialize a new object.

_search_person()

Implements a logic to search IMDB persons by their names.

Object Public Methods

name()

Retrieve a person full name

        my $person_name = $person->name();
mini_bio()

Returns a mini bio for specified IMDB person

        my $mini_bio = $person->mini_bio();
date_of_birth()

Returns a date of birth of IMDB person in format 'day' 'month caption' 'year':

        my $d_birth = $person->date_of_birth();
place_of_birth()

Returns a name of place of the birth

        my $place = $person->place_of_birth();
photo()

Return a path to the person's photo

        my $photo = $person->photo();
filmography()

Returns a person's filmography as array of hashes with a following structure:

        my $fg = $person->filmography();

        __DATA__
        $fg = [
                {       title   => 'movie title', 
                        role    => 'person role', 
                        year    => 'year of movie production',
                        code    => 'IMDB code of movie',        
                }
        ];

EXPORTS

Nothing

BUGS

Please, send me any found bugs by email: misha@thunderworx.com.

SEE ALSO

HTML::TokeParser, IMDB::BaseClass; IMDB::Film;

AUTHOR

Mikhail Stepanov (stepanov.michael@gmail.com)

COPYRIGHT

Copyright (c) 2004, Mikhail Stepanov. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 311:

You forgot a '=back' before '=head1'