What code have you already written and where does it fail to do what you need?
Personally, I would read the file line-by-line and accumulate all data into an array until I encounter a line with only a dash on it. Then I would look at the three last lines in the array and reformat them if needed. After that, I would output and reset the array.
In reply to Re: Perl question about manipulation of LDIF file
by Corion
in thread Perl question about manipulation of LDIF file
by Anand1974
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |