HTML::Split::Pager - Pager that contains splitted HTMLs.
use HTML::Split::Pager; my $html = <<HTML; <div class="pkg"> <h1>HTML::Split</h1> <p>Splitting HTML by number of characters.</p> </div> HTML; my $pager = HTML::Split::Pager->new(html => $html, lenght => 50); print $pager->text;
Create an instance of HTML::Split. Accept same arguments as split method.
Set/Get current page.
Return the number of total pages.
Return the next page number. If the next page doesn't exists, return undef.
Return the previous page number. If the previous page doesn't exists, return undef.
Return the text of current page.
Hiroshi Sakai <ziguzagu@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Split, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Split
CPAN shell
perl -MCPAN -e shell install HTML::Split
For more information on module installation, please visit the detailed CPAN module installation guide.