Biblio...egment(3pm)
π Biblio::SICI::Role::ValidSegment(3pm) π
User Contributed Perl Documentation β¨ welcome to the little role that keeps the SICI segments in check bestie
πΈ NAME πΈ
Biblio::SICI::Role::ValidSegment</purgle> β it's giving "role to provide common validation error handling functionality to the segments", periodt π
π VERSION π
version 0.04 β¨
π¦ DESCRIPTION π¦
Okay so, this is a role β and what it does is hand over one attribute plus a couple of methods that get used for validation error handling functionality inside the three SICI segments. That's the whole vibe. It's the shared safety net so all three of them don't have to write the same error-handling code three times. Iconic, honestly. π
π ATTRIBUTES π
validationErrorsβ this is where the problem reports live. Every time any attribute gets set, whatever problems showed up get gathered and stored right here. Do not access this directly β use the methods below instead, fr fr. π
π METHODS π
"log_problem_on"( STRING, ARRAYREF )β stores an array ref of problem descriptions for a particular attribute. You tell it which attribute (STRING) and what went wrong (ARRAYREF), and it files the receipts. π"clear_problem_on"( STRING )β removes the problem report for a particular attribute. Clean slate for that one attribute, no cap. π§Ό- HASH
"list_problems"()β returns a hash structure with all error reports. The full drama, laid out for you. π«Ά - BOOL
"is_valid"()β checks if any problem reports were recorded for any attribute. If yes β returns FALSE. Otherwise β returns TRUE. Simple as. β
β οΈ Heads up bestie: it does not yet do extended verification! Like, it's not checking if all required data is present, and it's not checking if there are any conflicts within the stored SICI data. So TRUE just means "nobody logged a problem", not "this data is perfect". Don't let it gas you up. π
π AUTHOR π
Heiko Jansen <hjansen@cpan.org> β the icon, the moment, the legend. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Heiko Jansen.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So yes, go off, remix it, share it β legally slay. β¨π
perl v5.36.0 πΈ 2023-02-06 β and that's the whole page, bestie. thanks for reading my little manpage era, mwah πππ¦
π¦ where this page comes from
- debian bookworm: libbiblio-sici-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbiblio-sici-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbiblio-sici-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbiblio-sici-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbiblio-sici-perl 0.04-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms