in reply to Perl File Parsing - My Code Works, but it's Ugly!
This would be pretty trivial to clean up, but please replace your code in the original post with the code you posted in a below post.
Also, append in a different code tag section a snippet of the input file, and specify exactly what your 'search criteria' actually is, so we can test it for real.
One more thing, put:
use warnings; use strict;
at the top of your script (under the shebang line), rerun it and fix any errors that are shown.
-stevieb
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl File Parsing - My Code Works, but it's Ugly!
by Nico (Novice) on May 31, 2015 at 17:51 UTC | |
by Nico (Novice) on May 31, 2015 at 18:00 UTC | |
by Athanasius (Archbishop) on Jun 01, 2015 at 05:34 UTC | |
|
Re^2: Perl File Parsing - My Code Works, but it's Ugly!
by Nico (Novice) on May 31, 2015 at 17:07 UTC | |
by ww (Archbishop) on May 31, 2015 at 20:38 UTC |