in reply to Re: Join multiple lines in a string based on regex.
in thread Join multiple lines in a string based on regex.

Thanks for the reply . Tried the same code , But it fails with the Error Below . Modification of non-creatable array value attempted, subscript -1 at ./file2.pl line 15, <$fd> line 1.
  • Comment on Re^2: Join multiple lines in a string based on regex.

Replies are listed 'Best First'.
Re^3: Join multiple lines in a string based on regex.
by hdb (Monsignor) on Dec 17, 2014 at 10:23 UTC

    This can happen if the data does not start with an "array" line (I am guessing).