Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
looping through an array reference of hash referenceby PrincePerl (Novice) |
on Oct 26, 2011 at 02:53 UTC ( [id://933775]=perlquestion: print w/replies, xml ) | Need Help?? |
PrincePerl has asked for the wisdom of the Perl Monks concerning the following question: Hello all..Im working on a cgi script am trying to compare 2 data files, but i have to have them as Array reference of hash references so i can pass the results on to an html template. Im still working on the code, i just thought i'll get another insight. Thanks in advance i have updated the code, but now i am getting an "Use of uninitialized value in string eq" my code
Data file 1 data file 2 start stop start stop 1234 5678 1234 5678 2123 1234 3233 2123 I am trying to loop though to compare the data in file 1 to file 2. for example if 1234 and 5678 is seen in the start and stop column in file 1 and seen in file 2, count that line. Also, if 2123 is seen is the start column and not seen in the start of the second file 1. count that also. This is my biggest problem at the moment. help
Back to
Seekers of Perl Wisdom
|
|