in reply to Re^3: trying to read files in @ARGV but getting GLOB error! :(
in thread trying to read files in @ARGV but getting GLOB error! :(

No, the script has no syntax errors if that's what you mean by } sub-ending bracket missing? I just copied and pasted it quickly to show that I think this is where the problem lies. I still can't figure it out and it's been hours. I'll be posting an updated version of the script with an output included, I really can't figure this out :(
  • Comment on Re^4: trying to read files in @ARGV but getting GLOB error! :(

Replies are listed 'Best First'.
Re^5: trying to read files in @ARGV but getting GLOB error! :(
by AnomalousMonk (Archbishop) on Jun 26, 2017 at 13:42 UTC

    Please pay heed to zentara's advice about the Short, Self-Contained, Correct Example: "a small-self-contained working example would be useful here. ... usually, when you ... make an example, you see the error yourself." Even if you never present this to anyone else, I know from personal experience that it can be enormously useful in debugging.


    Give a man a fish:  <%-{-{-{-<

Re^5: trying to read files in @ARGV but getting GLOB error! :(
by zentara (Cardinal) on Jun 26, 2017 at 13:01 UTC
    My other thought is maybe you have hyperthreading enabled on a multiple core computer, and it's gone haywire. :-) My suggestion is to start printing out $i and $j and your @array and your @ARGV at key points in the code and see what happens as it loops thru.

    I'm not really a human, but I play one on earth. ..... an animated JAPH