Keep It Simple, Stupid | |
PerlMonks |
Re: ideas on how to improve existing codeby Anonymous Monk |
on Aug 29, 2011 at 09:02 UTC ( [id://922959]=note: print w/replies, xml ) | Need Help?? |
It is not clear why you are diddling the data, what you call "format the columns", so why are you? You should do that after parsing into cvs, not before Somehow I have a feeling that this code is not efficient but it works. Thats just gas, don't worry about it Is it worth to improve it or just use it as it is? The code is literally 20 lines, there is nothing to improve The only possible thing is use "modern perl" practices, meaning use 3 argument open, and lexical filehandle, and maybe use autodie because the error message is better
In Section
Seekers of Perl Wisdom
|
|