in reply to Re: Beginner Hash Element Comparison
in thread Beginner Hash Element Comparison

Sir, I imagine that you are busy so I'll try to keep this short.
I spent the better part of yesterday finding understanding and downloading
those two modules in the second code you posted (Io::All and Modern::Perl)
After some Nmake problems and all, I was able to run the thing.
There appears to be a problem with the "io" file opening portion.
I then wrote a bit of code to more explicitly open the files, and checked to see if it would print their contents
it does that but when I do it that way i get no output in the command line.
I am just wondering if you knew what might be going on there?
I very much like the second code you posted it's very simple.
I just want to get it working now.
Thank you for your kind replies.

Replies are listed 'Best First'.
Re^3: Beginner Hash Element Comparison
by luis.roca (Deacon) on Feb 28, 2011 at 17:04 UTC

    "There appears to be a problem with the "io" file opening portion. I then wrote a bit of code to more explicitly open the files, and checked to see if it would print their contents it does that but when I do it that way i get no output in the command line. I am just wondering if you knew what might be going on there?

    You may want to edit your post and include the code you're describing above. Although CountZero helped with a solution he may not be the person who continues to help with your problem. (What if he doesn't check this site for one or two weeks?) If you show the code you wrote after trying his solution another smart member can come along, see both CountZero's work and yours, and be in a much better position to help. :-)


    "...the adversities born of well-placed thoughts should be considered mercies rather than misfortunes." — Don Quixote
Re^3: Beginner Hash Element Comparison
by CountZero (Bishop) on Mar 01, 2011 at 17:01 UTC
    There appears to be a problem with the "io" file opening portion.
    What error messages did you get?

    I then wrote a bit of code to more explicitly open the files, and checked to see if it would print their contents. It does that but when I do it that way i get no output in the command line.
    Does it or doesn't it print out anything? Perhaps you can try adding (in the first script) a say "@first_array"; say "@second_array"; just before the loop so you are sure the arrays indeed contain the correct data.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James