in reply to Re: Comparing adjacent lines
in thread Comparing adjacent lines
As you could probably tell, I'm new to Perl, so thanks for being gentle :) Thanks for the comments, they were extremely helpful. After the loop I am creating a new file; this program is for changing file formats.
One thing though: after ex# has been replaced with ex1, the subsequent ex# with matching @gtf[9] don't count up from ex1. They revert to the original ex# value+1 and count from there. I think that rather than taking the new ex1, its using the default ex# (like you said, changes made to @gtf are clobbered when the loop restarts). I guess I could specify ex1 as its own variable before the loop, like The Code Captain suggested...I'll test and see what happens.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Comparing adjacent lines
by daccame (Initiate) on Jul 12, 2012 at 14:27 UTC | |
by aaron_baugher (Curate) on Jul 12, 2012 at 15:29 UTC | |
by daccame (Initiate) on Jul 12, 2012 at 17:18 UTC | |
by aaron_baugher (Curate) on Jul 13, 2012 at 02:02 UTC | |
by daccame (Initiate) on Jul 13, 2012 at 16:02 UTC | |
|