in reply to how to read a particular paragraph from middle of a file line by line and enter each string in the line as an element of an array

open file and @lines=<FILE> and process @lines in foreach loop
track the starting and ending of paragraph using regex
process the lines if they are the part of paragraph
split lines considering space as separators
push splited line into the main array

  • Comment on Re: how to read a particular paragraph from middle of a file line by line and enter each string in the line as an element of an array