good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: compare text filesby Rudolf (Pilgrim) |
on Sep 12, 2012 at 06:43 UTC ( [id://993148]=note: print w/replies, xml ) | Need Help?? |
Hey, no worries. The code does work fine on my computer; however push(@array,$item); "pushes" a flat variable onto the end of the list. So its just adding it to the list. At the end of the program outside of all loops yes I used:
say "hello world"; is like System.out.println() in java, it prints the output with a newline. So when I type foreach @results it just prints out each result with a newline on the end.
The printing should only come after all the computing.. it should not be in any loops. All results should save to the array first and then you can use it at the end. Dont hessitate with any more questions :) good luck.
In Section
Seekers of Perl Wisdom
|
|