in reply to Line by Line file processing
Read master file contents and put it arrayopen(FH,"masterfile.txt") or die("Can't open the file : $!");
Read only the CHILD file details from master file content@masterContents = <FH>;
childDetail array will contain the last 3 lines of child details. Then Apply the programming logic.@childDetail = @masterContents[-3 .. -1 ];
|
|---|