There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

FUNCTION

parse_novel

解析txt

  my $txt_content_ref = $self->parse_novel(
    [ '/somedir/', '/someotherdir/somefile.txt' ], 
	writer => 'some_writer',
    book => 'some_book',
    chapter_regex => qr/(第\d+章)/, 
   );