Busine...essage(3pm)
π Business::Edifact::Message(3pm) π
okay so bestie, welcome to Business::Edifact::Message β this is the class that models Edifact Messages π¦ it's part of the User Contributed Perl Documentation, and it's literally just sitting there waiting for you to parse some messages with it. let's get into it π
β¨ VERSION β¨
Version 0.07 π
πΈ SYNOPSIS πΈ
so what does it do? it parses an individual Edifact message. the way it works is: Message objects get instantiated by Business::Edifact::Interchange, and then you get an array of them handed back to you from its messages function. iconic behaviour honestly π
$interchange->parse($incoming);
my $m_array = $interchange->messages();
for my $msg (@{$m_array}) {
...retrieve message data
}
like?? you just loop over the array and grab your message data. slay. π
π«Ά SUBROUTINES/METHODS π«Ά
β new
called by Business::Edifact::Interchange to instantiate a brand new Message object β¨ the caller passes in the header fields along with the reference number identifier and the message type. that's it, that's the birth of a Message π
π add_segment
processes the next data segment. go off, segment, do your thing π¦
π type
returns the message's type, e.g. 'QUOTES' or 'ORDERS' β literally telling you what kind of message we're dealing with, no cap π¬
π function
returns the message's function field. it may be 'original' or 'retransmission' β so basically: is this the first time you're seeing it or are we re-sending? π
π message_code
returns the 3 character message code from the BGM message π₯ three characters, that's the whole vibe.
π currency_code
π reference_number
π date_of_message
π items
returns the list of lineitems π§Ύβ¨
π handle_bgm
π handle_dtm
NB DTM can occur in different segment groups π keep that in mind bestie, it's giving "it shows up in more than one place"
π handle_pat
π handle_rff
π handle_cux
π handle_nad
π handle_lin
π handle_pia
π handle_imd
π handle_qty
π handle_gir
π handle_moa
π handle_tax
π handle_alc
π handle_rte
π handle_loc
π handle_pri
π handle_uns
π handle_cnt
π handle_ftx
π handle_pcd
okay real talk β that whole squad above (and the three bare names further up) is just listed by name in the manpage. no descriptions given π so I'm not gonna sit here and invent lore for them, that would be lying to you and we don't do that. they're the handle_* crew and the getters, periodt π
π§ clear_item_flags
clear flags at start of new item or summary πΈ fresh start energy, wiping the slate clean.
π AUTHOR π
Colin Campbell, "<colinsc@cpan.org>" π
π BUGS π
found a bug? got a feature request? 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>.
and here's the best part: he will be notified, and then you'll automatically be notified of progress on your bug as changes get made π«Ά mutual notif situation, we love to see it.
π SUPPORT π
you can find documentation for this module with the perldoc command β¨
perldoc Business::Edifact::Message
π ACKNOWLEDGEMENTS π
(it's empty. that's the whole section. we move π)
π LICENSE AND COPYRIGHT π
Copyright 2011-2014 Colin Campbell. π
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.
and that's the whole page bestie π this was Business::Edifact::Message(3pm), from the User Contributed Perl Documentation, running on perl v5.36.0, dated 2022-10-13 πΈ go parse something cute, you got this π¦β¨
π¦ 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