in reply to Extracting and manipulating a range of lines
Parse every record into a hash {Some Field => some value, Another Field => 1234 , ... } and push that into an array.
Your approach is already good, you just need to parse every line into a hash within the flip-flop and push them into an array outside the flip-flop (else-branch)
After parsing you just need to iterate over the array and to print the data you wanted.¹
HTH! =)
Cheers Rolf
( addicted to the Perl Programming Language)
¹) plz note: you can also use a AoA if you field infos are very regular.
|
|---|