The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTML::Persistent::HTML - Import/Export HTML

SYNOPSIS

use HTML::Persistent;

my $db = HTML::Persistent->new( dir => '/tmp/test-directory' ); my $node = $db->{foo}{bar}{baz}; my $html = $node->HTML();

# NOTE: Import only supports writing into an empty node! $html->import( $chunk1 ); $html->import( $chunk2 ); $html->import( $chunk3 ); $html->eof(); $db->sync();

# Output HTML reconstructed from database. print $html->export();