in reply to Re: Removing everything before the first comma separator on each line of a text file
in thread Removing everything before the first comma separator on each line of a text file

Quick question..in your reply, you have the actual text from the file within the code? Or is that to show what portion of the data that code is to be affecting?

  • Comment on Re^2: Removing everything before the first comma separator on each line of a text file

Replies are listed 'Best First'.
Re^3: Removing everything before the first comma separator on each line of a text file
by Anonymous Monk on Sep 16, 2014 at 21:06 UTC

    johngg is using a here-document to construct a string consisting of the input data, and is using open with a reference to access it as an in-memory file. Also, the output of the script is shown in-line (as it would look when run from a terminal).