http://www.perlmonks.org?node_id=849113


in reply to Join lines that match an string

Can you please provide some sample input data, a definition of your "remotely" criterion to match lines, and a sample output data?

And what is "p_agrs"?

edits:

  1. fixed typo: s/an s/a s/
  2. striked the "p_agrs" question. kennethk's answer clarified that.