STAR::Checker(3pm)
π STAR::Checker β the vibe check for your DataBlock objects π
okay bestie, gather round, because this is the Perl extension for checking DataBlock objects and honestly? it's giving "quality control but make it cute." β¨
Oh and also β this doc is talking about version 0.02 of the module. Just so we're on the same page. π
πΈ SYNOPSIS πΈ
like, here's the whole thing in one lil' snack:
use STAR::Checker;
$check = STAR::Checker->check( -datablock=>$ARGV[0],
-dictionary=>$ARGV[1] );
that's it. that's the whole entrance. π
π¦ DESCRIPTION π¦
so this module contains the checker object, and it comes with methods for checking a DataBlock object against STAR rules and against a dictionary you pick out. no cap.
and where do DataBlock objects come from, you ask? they get created by Parser and modified by DataBlock. it's a whole ecosystem, iykyk. π
π CLASS METHODS π
β check
Usage: $check = STAR::Checker->check(-datablock=>$data,
-dictionary=>$dict [,
-options=>$options ] );
okay so this is the main character right here. check takes your DataBlock object $data and checks it against the dictionary object $dict (peep STAR::Parser and STAR::DataBlock if you wanna know more about those). and bestie, it checks five things:
- whether all items in the
DataBlockare actually defined in the dictionary - whether mandatory items are present in the file
- whether dependent items are present in the file β like, for example,
cartn_xmakescartn_yandcartn_zdependent, so they gotta show up together, no leaving the group chat π«Ά - whether parent items are present
- whether the item values in the
DataBlockconform to the item type definitions in the dictionary
and what does it give you back?
- it returns 1 if the check was successful (aka literally zero problems found) π
- and it returns 0 if the check was unsuccessful (aka problems were found π)
and if you're nosy and want the receipts: a list of the specific problems gets written toSTDERRwhen you specify-options=>'l'. so like, yes, use thel. get the tea. π₯
π«Ά AUTHOR π«Ά
Wolfgang Bluhm, mail@wbluhm.com
π Acknowledgments
thanks to Phil Bourne, Helge Weissig, Anne Kuller, Doug Greer, Michele Bluhm, and others for support, help, and comments. friendship really is the moment. πΈ
π COPYRIGHT π
a full copyright statement is provided with the distribution β Copyright (c) 2000 University of California, San Diego. periodt. π
π§ SEE ALSO π§
STAR::Parser, STAR::DataBlock, STAR::Dictionary.
okay that's the whole page, bestie!! this doc was shipped as perl v5.18.1 and dated 2001-05-22 β yes, an icon from 2001, aging like fine wine. slay forever. πβ¨π
π¦ where this page comes from
- debian bookworm: libstar-parser-perl 0.59-4
- debian trixie: libstar-parser-perl 0.59-4
- ubuntu jammy: libstar-parser-perl 0.59-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms