.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.40) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Business::Edifact::Interchange 3pm" .TH Business::Edifact::Interchange 3pm "2021-01-02" "perl v5.32.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Business::Edifact::Interchange \- Parse Edifact Messages For Book Ordering .SH "VERSION" .IX Header "VERSION" Version 0.07 .SH "SYNOPSIS" .IX Header "SYNOPSIS" This is a support module for \s-1EDI\s0 ordering modules being developed for the Koha and Evergreen \s-1OS\s0 Library Management Systems .PP .Vb 1 \& use Business::Edifact::Interchange; \& \& my $foo = Business::Edifact::Interchange\->new(); \& $foo\->parse($edifact_message); \& or \& $foo\->parse_file($filename); \& ... .Ve .PP The standards for using Edifact in Library Book Supply are available from .PP .Vb 1 \& www.editeur.org .Ve .SH "SUBROUTINES/METHODS" .IX Header "SUBROUTINES/METHODS" .SS "new" .IX Subsection "new" Create an Business::Edifact::Interchange object .SS "parse" .IX Subsection "parse" parse the edifact interchange passed in the message .SS "parse_file" .IX Subsection "parse_file" Reads an edifact message from a file and parses it Will strip the lineendings added to files by some suppliers .SS "user_data_segment" .IX Subsection "user_data_segment" internal method for handling message data segments pass to the current Business::Edifact::Message object for fuller passing .SS "message_header" .IX Subsection "message_header" create a new Business::Edifact::Message object .SS "message_trailer" .IX Subsection "message_trailer" End message add completed message to my messages array .SS "interchange_trailer" .IX Subsection "interchange_trailer" internal method to parse and validate the interchange trailer .SS "read_service_string_advice" .IX Subsection "read_service_string_advice" internal method to parse the service string advice and set the separator values for the interchange accordingly .SS "split_components" .IX Subsection "split_components" internal method to split data field into components .SS "interchange_header" .IX Subsection "interchange_header" Internal method to parse the interchange header .SS "message_group_header" .IX Subsection "message_group_header" internal method to parse the message group header (Currently a nop ) .SS "message_group_trailer" .IX Subsection "message_group_trailer" internal method to parse the message group trailer (Currently a nop ) .SS "messages" .IX Subsection "messages" Returns and array_ref of Edifact::Message objects representing the contents of the interchange .SH "WARNINGS" .IX Header "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. .SH "AUTHOR" .IX Header "AUTHOR" Colin Campbell, \f(CW\*(C`\*(C'\fR .SH "BUGS" .IX Header "BUGS" Please report any bugs or feature requests to \f(CW\*(C`bug\-edifact\-interchange at rt.cpan.org\*(C'\fR, or through the web interface at . I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. .SH "SUPPORT" .IX Header "SUPPORT" You can find documentation for this module with the perldoc command. .PP .Vb 1 \& perldoc Business::Edifact::Interchange .Ve .SH "ACKNOWLEDGEMENTS" .IX Header "ACKNOWLEDGEMENTS" .SH "LICENSE AND COPYRIGHT" .IX Header "LICENSE AND COPYRIGHT" Copyright 2011\-2014 Colin Campbell. .PP This program is free software; you can redistribute it and/or modify it under the terms of either: the \s-1GNU\s0 General Public License as published by the Free Software Foundation; or the Artistic License. .PP See http://dev.perl.org/licenses/ for more information.