Busine...change(3pm)
π NAME π
Business::Edifact::Interchange β bestie, this is the module that parses Edifact messages for book ordering. That's it, that's the whole vibe. π
(Also, hi, you're reading the 3pm perl man page for it, in case you were wondering why the header looks like that. π
)
β¨ VERSION β¨
Version 0.07 π
π¦ SYNOPSIS π¦
Okay so real talk: this is a support module for EDI ordering modules being developed for the Koha and Evergreen OS Library Management Systems. It's giving backstage-pass energy β it's not the star, it's the star's bestie. π«Ά
use Business::Edifact::Interchange;
my $foo = Business::Edifact::Interchange->new();
$foo->parse($edifact_message);
or
$foo->parse_file($filename);
...
The standards for using Edifact in Library Book Supply are available from
www.editeur.org
(lowkey go look, it's the source material πβ¨)
πΈ SUBROUTINES/METHODS πΈ
new
Create an Business::Edifact::Interchange object π (yes, "an" β the original said "an", we don't gatekeep grammar here). New object, new era, main character energy.
parse
parse the edifact interchange passed in the message π
parse_file
Reads an edifact message from a file and parses it. Will strip the lineendings added to files by some suppliers. (Yes bestie, some suppliers just add line endings, and this method handles that for you, periodt. π )
user_data_segment
internal method for handling message data segments β pass to the current Business::Edifact::Message object for fuller passing π
message_header
create a new Business::Edifact::Message object β¨
message_trailer
End message, add completed message to my messages array π
interchange_trailer
internal method to parse and validate the interchange trailer π
read_service_string_advice
internal method to parse the service string advice and set the separator values for the interchange accordingly π§
split_components
internal method to split data field into components βοΈ
interchange_header
Internal method to parse the interchange header π¦
message_group_header
internal method to parse the message group header (Currently a nop) π
message_group_trailer
internal method to parse the message group trailer (Currently a nop) π
messages
Returns and array_ref of Edifact::Message objects representing the contents of the interchange π (that's the whole bag of messages, right there.)
π WARNINGS π
At present this is tested for quotes. Beware β suppliers' interpretation of the Edifact Standard can vary considerably. (And the standard is large enough to allow considerable leeway on this.) Its intended to expand this module based on practical experience.
no cap, this is the "trust but verify" section. The standard is huge, everyone reads it differently, and this module has mainly been battle-tested against quotes. π
π AUTHOR π
Colin Campbell, "<colinsc@cpan.org>" π
π BUGS π
Please report any bugs or feature requests to "bug-edifact-interchange at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Business-Edifact-Interchange>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. π«Ά
π SUPPORT π
You can find documentation for this module with the perldoc command.
perldoc Business::Edifact::Interchange
π§ ACKNOWLEDGEMENTS π§
(It's empty, bestie. The original says nothing here. Not a single shoutout. Iconic in its own minimal way. β¨)
π LICENSE AND COPYRIGHT π
Copyright 2011-2014 Colin Campbell. <colin.campbell@ptfs-europe.com>
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
okay bye bestie, ily β this was written against perl v5.36.0 and dated 2022-10-13, and that's the whole page. slay π ππ
π¦ where this page comes from
- ubuntu noble: libbusiness-edifact-interchange-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libbusiness-edifact-interchange-perl 0.07-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbusiness-edifact-interchange-perl 0.07-4 Β· 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