1. Get the data from the table using DBI and store it in file 2. Split the each row using the delimiter and store it in array 3. Loop the through the array and check the length 4. Repeat this step for all the rows. Thus Parse the file row by row