more useful options | |
PerlMonks |
Perl question about manipulation of LDIF fileby Anand1974 (Initiate) |
on Oct 10, 2017 at 08:19 UTC ( [id://1201076]=perlquestion: print w/replies, xml ) | Need Help?? |
Anand1974 has asked for the wisdom of the Perl Monks concerning the following question:
My challange: I have got a (ldif) file with a lot of entries. Some of them needs to be reformatted. The rule for when to reform something is like this: If a line is equal to "-" then check the previous two lines. If they both begin with a space (" ") then the space in the 2nd line should be removed and the line should be appended to the first line (the line break should be removed). Example: should be transformed into:
Back to
Seekers of Perl Wisdom
|
|