I don't understand what you are trying to say in the first two paragraphs. (Yes, the debug statements would have worked with $| = 1. Yes, it would have worked by replacing $pics_found with @found_images. Just like I said in my post.)
If your point is that you're taking exception to me cleaning up the code, keep in mind that good code is readable and maintainable code. The excess of redundancy and the poor choice of variable names in the original code affected both readability and maintainability.
would it not be better for the server in terms of CPU and memory if the images were downloaded into a temp directory and sized locally rather than read from memory?
The CPU usage would be (slightly) higher, since we'd have extra code to write to the disk and read from the disk.
Yes, the memory usage could be smaller (depending on how we write to and read from the disk) by something less than the size of one image.
And of course, it would be slower because we'd have to do all the work we currenlty do, plus more.
In reply to Re^3: endless loop problems
by ikegami
in thread endless loop problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |