Menu

#3 Switch to Control Perl Split Behavior

open
nobody
5
2006-01-10
2006-01-10
Anonymous
No

Addition of a switch at some level, HL7 or Message
level to control the behavior of the Perl split
function.

From the PerlFunc Documentation :

"If LIMIT is negative, it is treated as if an
arbitrarily large LIMIT had been specified."

As an example, from the Message.pm, a possible
solution.

@fields = split('\\' . $self->{FIELD_SEPARATOR},
$segments[$i], $Net::HL7::PRESERVE_TRAILING );

where $Net::HL7::PRESERVE_TRAILING can be set to -1.

Other modules may also be touched.

This allows for trailing pipes, etc. from begin
removed from the optional string representation of a
HL7 message.

Thanks

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.