1833883 Members
1828 Online
110063 Solutions
New Discussion

Re: PERL challenge!!

 
SOLVED
Go to solution
Chris Tijerina_2
Occasional Advisor

PERL challenge!!

 
"If you choose not to decide, you still have made a choice."
2 REPLIES 2
Rodney Hills
Honored Contributor
Solution

Re: PERL challenge!!

Any serious perl programmer will make themselves familiar with the debugger.

perl -d yourscript.pl

Puts you in debug mode. You can step through the script and look at variables on the fly.

From a tersery look, I notice that you load up @ARRAY with your values. I think you might want to do an "undef" on @ARRAY right after you have input a record. In your current script, @ARRAY will be appended to each time when using "push", thus accumulating your data for each *.ant file.

-- Rod Hills
There be dragons...
Chris Tijerina_2
Occasional Advisor

Re: PERL challenge!!

Thanks Rodney.

I have used the debugger and usually the debugger is only good for syntax issues. I do not have syntax issues within this script.

I am just trying to figure out why I have an appending loop.

I will apply your suggestion, and I do thank you for it.

C. Tijerina
"If you choose not to decide, you still have made a choice."