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 <email@example.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.