| [reply] |
Yep the arrays are definitely fully processed - I put debug in to make sure. It does take a long time and uses up a lot of memory and processing power. I even switched autodefer off but that hasn't helped.
| [reply] |
| [reply] |
Unfortunately that's not so easy. The processing of the arrays is fairly extensive (runs to hundreds of lines). I had hoped what I'd put might just ring a bell with somone who'd seen similar problems.
The fact that it works with small files but not large ones perplexes me. It may be that I'm running into memory problems I guess. I don't know the inner workings of the Tie code but I suppose if I tie large files I'm ultimately using a lot of memory.
| [reply] |
I'm not asking you to post your production code, unaltered. You can replace your "processing" (whatever that is; you don't say) with some kind of no-op.
That's why I said "minimal complete". Strip it down.
Please. I'd like to try to help.
Also, please make sure you have read and understand the Tie::File Caveats.
Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.
| [reply] |
Maybe if the files are larger there are "conditions" that apply which are not foreseen and the code "breakes (the programs dies e.g.)" at these larger files, but i am not experienced enough to give you detailed hints what to search for, as already mentioned maybe memory. Perl is only limited by your (computing) ressources there is no "hard" limit which is set by Perl ... Perhaps printing debugging lines could help to see where it is broken or printing the contents of variables/arrays into a log-file but i really dont know the best practices on this ...
hth
MH
| [reply] |