EBook::MOBI::Driver - Interface for plugins.
Thid module helps you to write an input plugin for EBook::MOBI.
EBook::MOBI
Some example code snippets are provided here. For a complete example, please have a look at EBook::MOBI::Driver::Example.
# Plugin for EBook::MOBI use EBook::MOBI::Driver; our @ISA = ('EBook::MOBI::Driver'); sub parse { my ($self, $input) = @_; # your code to convert input to output return $output; } sub set_options { my $self = shift; my $args = shift; # call the args like this if (ref($args) eq "HASH") { if ($args->{YOUR_ARG_NAME}) { # do your stuff } } }
Saves a plugin the need to write this one.
Enable debugging by passing a sub.
Stop debug messages.
Write a debug message.
Should be implemented by the plugin! Takes a string, returns a string.
Should be implemented by the plugin! Takes a hash ref with arguments.
Copyright 2012, 2013 Boris Däppen, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms of Artistic License 2.0.
Boris Däppen <bdaeppen.perl@gmail.com>
To install EBook::MOBI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EBook::MOBI
CPAN shell
perl -MCPAN -e shell install EBook::MOBI
For more information on module installation, please visit the detailed CPAN module installation guide.