|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Problem with Data Extractionby Athanasius (Vicar) |
| on Dec 04, 2012 at 04:39 UTC ( #1006992=note: print w/ replies, xml ) | Need Help?? |
|
Hello jpvinny28, and welcome to the Monastery! In addition to the excellent advice given by GrandFather, above (don’t turn off warnings, avoid subroutine prototypes), here is some general coding advice that will help you in the long run:
Prefer the 3-argument form of open, and use lexical filehandles:
Choose an indentation style, and stick to it! See perlstyle. Use consistent variable names. For example, you have a filehandle OUTFILE2 opened for writing on a file named $file3. That’s a maintenance nightmare just waiting to bite you! Hope that helps, Athanasius <°(((>< contra mundum
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||