Acme::Marvel::CinematicUniverse::Characters - example of distributing instance data on CPAN
use Acme::Marvel::CinematicUniverse::Characters; say for Acme::Marvel::CinematicUniverse::Characters->find('tony');
This module is primarily intended as an example of how to distribute instances of objects on CPAN.
It uses characters from the Marvel Cinematic Universe (Earth-199999) rather than the comic book universe, though power grid data is taken from the Marvel wiki, and mostly based on the comic books. It currently only includes the six core characters from Marvel's The Avengers (2012), also known as Avengers Assemble in the UK and Ireland.
characters
Returns a list of all known characters. In scalar context, returns the count of characters.
Characters are Acme::Marvel::CinematicUniverse::Character objects.
find($needle)
Given a string or regexp to search for, searches for a character by name, returning all the results as a list. In scalar context, returns the first match, which may or may not be the "best" match.
Strings given as search terms are treated case-insensitively. Regexps are used as-is, so may or may not be case-sensitive.
instance_modules
Returns a list of modules that have been used to find character data.
load_character($character)
Used by instance modules to load characters.
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Acme-Marvel-CinematicUniverse-Characters.
Acme::Marvel::CinematicUniverse::Character, WWW::Marvel.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2020 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install Acme::Marvel::CinematicUniverse::Characters, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Marvel::CinematicUniverse::Characters
CPAN shell
perl -MCPAN -e shell install Acme::Marvel::CinematicUniverse::Characters
For more information on module installation, please visit the detailed CPAN module installation guide.