in reply to Very basic question while reading a file line by line

Your sample data smells like CSV. If that is the case you really should use Text::CSV to read the file.

That aside, I'd be much happier to see some code that you have attempted to use and a description of how it fails than a simple cap in hand request for us to do your homework for you.

Oh, and Anonymous Monk doesn't get to consider itself a fellow monk in my book. To gain that qualification you should join the monastery.

Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
  • Comment on Re: Very basic question while reading a file line by line