STAR::Writer(3pm)
π STAR::Writer(3pm) π
okay bestie, welcome to the STAR::Writer era of your life π this is the Perl extension that writes STAR::DataBlock objects out as files, and honestly? she serves. this is the doc for STAR::Writer(3pm) and we're gonna get you all the way together π«Ά
πΈ Version
this documentation is talking about version 0.01 of this module. tiny number, big energy π
β¨ SYNOPSIS β¨
use STAR::Writer;
STAR::Writer->write_cif( -dataref=>$data, -file=>$file );
that's it. that's the whole vibe. π
π¦ DESCRIPTION π¦
so basically this module is gonna hand you a bunch of methods for writing STAR::DataBlocks out as files, in different formats β she's versatile like that β¨
right now there's one method on the roster: write_cif, and what she does is write a STAR::DataBlock or STAR::Dictionary object as a file in CIF (STAR) format. that's the assignment and she ate. periodt. π₯
π CLASS METHODS π
π« write_cif
Usage: STAR::Writer->write_cif( -dataref=>$data,
-file=>$file [,
-options=>$options ] );
here's the tea, no cap: write_cif takes the STAR::DataBlock object that $data points at and writes it to the file that $file points at. π«Ά
and $options? those are little single-letter flags, bestie:
lβ for logging activity, and she logs toSTDERRdβ for debugging
that's it, that's the whole option menu. simple, iconic, lowkey perfect π
π COMMENTS π
ngl, there's a little situation here that you should know about: categories and items are currently written out in alphabetical order.
and listen β to automated parsing? literally zero importance. the parser does not care. π
but if you're a human being visually inspecting these files with your own two eyes? sorting alphabetically might not be the move you want. so likeβ¦ keep that in mind, okay? she said what she said π
π AUTHOR π
Wolfgang Bluhm, mail@wbluhm.com
π Acknowledgments
big love and thank yous to Phil Bourne, Helge Weissig, Anne Kuller, Doug Greer, Michele Bluhm, and others β for support, help, and comments. the support system really said "we ride at dawn" and we love that for them π«ΆπΈ
β COPYRIGHT β
a full copyright statement is provided with the distribution. π
Copyright (c) 2000 University of California, San Diego
π SEE ALSO π
go check out her besties, they're all iconic iykyk:
STAR::ParserSTAR::Dictionary
that's the whole page bestie, you're now officially fluent in STAR::Writer π this was STAR::Writer(3pm) from perl v5.18.1, dated 2001-05-22 β written back when your favourite songs weren't even a glimmer in the timeline, and still eating π bye ily, go write some CIF files π¦β¨
π¦ 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