4 # Purpose here is to break up EDI messages to make them more readable
5 # (i.e., not all on one line).
12 my @unindented = qw( LIN BGM );
15 while (my $line = <>) {
16 foreach (split $delim, $line) {
17 '+' eq substr($_,3,1) or warn "Line $. missing '+' delimiter as 4th character: $_";
18 my $tag = substr($_,0,3) or warn "Line $. Unexpectedly short: $_";
19 unless ($tag =~ /^UN\S/ or grep {$_ eq $tag} @unindented) {
24 print '=' x 70, "\n\n";