in reply to Perl question about manipulation of LDIF file

#!/usr/bin/perl # http://perlmonks.org/?node_id=1201076 use strict; use warnings; print +(join '', <DATA>) =~ s/^ .*\K\n (?=.*\n-)//gmr; __DATA__ a data line Test123 Blah - something else do not change this line - a data line combine th is line - something else

Replies are listed 'Best First'.
Re^2: Perl question about manipulation of LDIF file
by Anonymous Monk on Oct 11, 2017 at 08:03 UTC
    I am impressed by your suggestion tybalt89! It works wonders. Thank you so much!