paragkalra has asked for the wisdom of the Perl Monks concerning the following question:
I have a requirement where I need to check the length of each row of all the columns of my table.
I was planning to use following algorithm
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
But to me this might be slow process since we would be processing each and every element of the table.
Is there any better optimized solution.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Checking the length of all row elements
by moritz (Cardinal) on Jul 24, 2010 at 19:39 UTC | |
Re: Checking the length of all row elements
by oko1 (Deacon) on Jul 24, 2010 at 20:24 UTC | |
Re: Checking the length of all row elements
by ahmad (Hermit) on Jul 24, 2010 at 19:50 UTC | |
Re: Checking the length of all row elements
by jwkrahn (Abbot) on Jul 24, 2010 at 19:40 UTC | |
Re: Checking the length of all row elements
by paragkalra (Scribe) on Jul 24, 2010 at 21:29 UTC | |
by Marshall (Canon) on Jul 24, 2010 at 23:36 UTC | |
by oko1 (Deacon) on Jul 24, 2010 at 22:02 UTC | |
by jwkrahn (Abbot) on Jul 25, 2010 at 03:06 UTC | |
by moritz (Cardinal) on Jul 24, 2010 at 21:33 UTC |