Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by zodell (Initiate)
on Sep 16, 2014 at 19:58 UTC ( [id://1100827]=note: print w/replies, xml ) Need Help??


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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100827]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found