Is there any way to stop it resetting but rather carrying on from where it left off?
No, but you could use your own iterator veriable, or unshift from @requests.
If $mailprog is sendmail, you might also want -oi (put the parameters in the variable anyhow)
U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk
In reply to Re: foreach returning to start of array
by Juerd
in thread foreach returning to start of array
by chrisbarton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |