| 1 |
|
| 2 |
X12::Parser 0.80 |
| 3 |
------------------------------------------------------------------------------- |
| 4 |
1. Some errors related to file handling have been fixed. Versions 0.50 |
| 5 |
and 0.60 were impacted. get_next_pos_loop, get_next_pos_level_loop, |
| 6 |
print_tree were impacted. |
| 7 |
The error was as a result of calling readline() on a closed file |
| 8 |
handle. |
| 9 |
|
| 10 |
2. The pods have been better formatted. |
| 11 |
|
| 12 |
|
| 13 |
X12::Parser 0.60 |
| 14 |
------------------------------------------------------------------------------- |
| 15 |
1. Attention: users of previous version |
| 16 |
parse_file() has been renamed to parsefile(). |
| 17 |
parsefile ( file => $file, conf => $conf ); |
| 18 |
Users using the parse() methods to parse a X12 file should |
| 19 |
now use the parsefile() method. |
| 20 |
|
| 21 |
2. Attention: users of previous version |
| 22 |
parse() method signature has changed. |
| 23 |
new signature is parse ( handle => $handle, conf => $conf ); |
| 24 |
takes an already open file handle as input. |
| 25 |
|
| 26 |
3. closefile() method is added. |
| 27 |
If you do not parse the entire X12 file using get_next_loop() |
| 28 |
method, then it is recommended that you call closefile() to |
| 29 |
close the file being parsed. |
| 30 |
|
| 31 |
|
| 32 |
X12::Parser 0.50 |
| 33 |
------------------------------------------------------------------------------- |
| 34 |
1. Many improvements (almost a rewrite) have gone into this version. |
| 35 |
Most of the interfaces have been kept the same except some spell corrections. |
| 36 |
|
| 37 |
2. New class X12::Parser::Tree has been added. Earlier the X12::Parser::Cf |
| 38 |
class was used to read the cf file as well as maintain the information in |
| 39 |
object form. Now they are separated out. X12::Parser::Tree simplifies the |
| 40 |
representation of cf file in object format and is a much cleanser approach. |
| 41 |
|
| 42 |
3. X12::Parser::Cf has been rewritten. Old goto statements are gone. |
| 43 |
|
| 44 |
4. X12::Parser module is rewritten. As a result of X12::Parser::Tree, the |
| 45 |
X12::Parser module is now much more readable and uses a cleaner approach. |
| 46 |
It can handle segment separators of the for ~, ~LF, ~CRLF. |
| 47 |
|
| 48 |
5. New method get_subelement_separator() is added. |
| 49 |
|
| 50 |
6. Spelling correction from seperator to separator is done. |
| 51 |
|
| 52 |
7. Additional test files for the new modules. |
| 53 |
|
| 54 |
8. Added new method parse_file, replacement to parse. The parse() |
| 55 |
method in the future will be used for file handles. |
| 56 |
|
| 57 |
|
| 58 |
X12::Parser 0.09 |
| 59 |
------------------------------------------------------------------------------- |
| 60 |
1. Package Level variables in both the Parser.pm and Cf.pm module have |
| 61 |
been removed. This would allow a user to call the parse method on multiple |
| 62 |
files using same/different config files. |
| 63 |
|
| 64 |
2. Removed warnings that appeared when a end of the X12 file was reached. |
| 65 |
|
| 66 |
|
| 67 |
X12::Parser 0.08 |
| 68 |
------------------------------------------------------------------------------- |
| 69 |
A whole lot of changes have gone into this version. |
| 70 |
The X12::Parser can now handle files of any size. The earlier versions |
| 71 |
of the parser relied on reading the whole X12 file into an array before |
| 72 |
parsing. X12::Parser can handle files with multiple ISA segments having |
| 73 |
different segment seperators (note it cannot handle different transaction |
| 74 |
types within the same file). |
| 75 |
|
| 76 |
1. _parse() method is split into 2 functions _parse_loop_start() and |
| 77 |
_parse_loop(). Instead of loading the whole file into an array the file |
| 78 |
is read as it is being parsed. _parse_loop_start() and _parse_loop() |
| 79 |
could have been handled within the same function but have kept it |
| 80 |
seperate for simplicity. _parse_loop_start() detects start of loops. |
| 81 |
_parse_loop() return the loop segments. |
| 82 |
|
| 83 |
2. _set_seperator() function is added. This function sets the segment |
| 84 |
seperator and element seperator. |
| 85 |
|
| 86 |
3. get_segments() function is removed. Since we no longer maintain the |
| 87 |
whole file in an array, it is difficult to gets the segments in a loop |
| 88 |
just by giving the line number where the loop starts. |
| 89 |
|
| 90 |
4. reset_pos() function is removed. Not really used and also now that |
| 91 |
we parse the file serially there is no need for this function. |
| 92 |
|
| 93 |
5. get_loop_segment() no longer needs $loop as input. |
| 94 |
|
| 95 |
6. Changes to man page section of the module to reflect the above changes. |
| 96 |
|
| 97 |
7. get_next_pos_loop(), and get_next_pos_level_loop() return segment positions |
| 98 |
starting with 1. In previous versions 0 would correspond to the first segment. |
| 99 |
|
| 100 |
|
| 101 |
X12::Parser 0.04 |
| 102 |
------------------------------------------------------------------------------- |
| 103 |
1. Moved _get_level_one and _get_next_level functions from |
| 104 |
Parser.pm to Cf.pm (the new functions in Cf.pm are called |
| 105 |
get_level_one and get_next_level). This keeps configuration |
| 106 |
related functions within the Cf.pm module. |
| 107 |
|
| 108 |
2. Moved $self members/elements to file globals. |
| 109 |
|
| 110 |
3. Changed $c_L to $current_level and $s to $element_seperator |
| 111 |
|
| 112 |
4. Added $segment_seperator. Added get_segment_seperator() and |
| 113 |
get_element_seperator() functions. Modified $line_seperator to |
| 114 |
$orig_line_seperator |
| 115 |
|
| 116 |
|
| 117 |
X12::Parser 0.03 |
| 118 |
------------------------------------------------------------------------------- |
| 119 |
1. Fixed problem with parser running out of memory. |
| 120 |
Still has issue with very large files. |
| 121 |
|
| 122 |
|
| 123 |
X12::Parser 0.01 - initial release |
| 124 |
------------------------------------------------------------------------------- |
| 125 |
1. First release |
| 126 |
|