EBook::...ta::Item(3)
π NAME π
EBook::EPUB::Metadata::Item β bestie, it's literally just a name/value pair. That's it. That's the whole vibe. β¨
It's the item that lives inside the <metadata> element of an OPF file, and it's giving "small but essential." π
πΈ SYNOPSIS πΈ
Item for <metdata> element of OPF file. Just name/value pair.
ok so real talk, that typo up there β <metdata> β is exactly how the original spells it, so I'm keeping it, no cap. π
β¨ SUBROUTINES/METHODS β¨
new(%opts)β makes you a brand new item, slay. π¦
%opts is an anonymous hash that might contain the following keys:
namevalue
So like, you hand it a hash of options and it does the thing. Lowkey the simplest constructor ever. π
encode($xmlwriter)β Encode object to XML form using anXML::Writerinstance. You pass it your writer and it writes itself out. Main character behavior fr fr. π₯name([$name])β Get/set the name of the metadata item. Call it with nothing and it just tells you the name; call it with a$nameand it sets it. Obsessed with a dual-purpose method. πvalue([$value])β Get/set the value of the metadata item. Same deal: no argument = get, argument = set. Periodt. π
π«Ά AUTHOR π«Ά
Oleksandr Tymoshenko, <gonzo@bluezbox.com>
π BUGS π
Please report any bugs or feature requests to <gonzo@bluezbox.com>
not me telling you to email your problems directly to the author, but yeah, that's literally the instruction π
π LICENSE AND COPYRIGHT π
Copyright 2009, 2010 Oleksandr Tymoshenko.
This module is free software; you can redistribute it and/or modify it under the terms of the BSD license. See the LICENSE file included with this distribution.
and that's the whole page bestie π this one shipped as part of perl v5.42.0, dated 2025-07-25, and you'll find it filed under EBook::...ta::Item(3) β go forth and encode your little name/value pairs, you absolute icon βπΈ
π¦ where this page comes from
- fedora 43: perl-EBook-EPUB 0.6-39.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms