in reply to Perl question about manipulation of LDIF file

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.

  • Comment on Re: Perl question about manipulation of LDIF file