- or download this
my $ele = $root->look_down(
_decl => ...was specified...,
) or die qq{declaration not found\n};
my $dec = $ele->attr('_decl');
- or download this
my $ele = $root->look_down(
sub { $_[0]->attr('_decl') }
) or die qq{declaration not found\n};
my $dec = $ele->attr('_decl');
- or download this
my $dec = $root->attr('_decl')
or die qq{declaration not found\n};
- or download this
$dec->attr(text => 'DOCTYPE html PUBLIC "HTML4"');
- or download this
$root->attr('_decl',
HTML::Element->new('~declaration',
text => 'DOCTYPE html PUBLIC "HTML4"',
)
);
- or download this
#!/usr/bin/perl
...
<head><title>declaration</title></head>
<body><p>declaration</p></body>
</html>
- or download this
<!DOCTYPE html PUBLIC "HTML4">
<html><head><title>declaration</title></head><body><p>declaration</bod
+y></html>