in reply to break out of enless loop does not release memory

Another trick to try is to re-use the array, by making it a global. That should make the memory rise to the peak of any single run.
use appiqcli; my @eventlist; while(1) { @eventlist = appiqlist(-event -all); sleep(10); @eventlist = (); }
Otherwise you will need to write it in C.

I'm not really a human, but I play one on earth. Cogito ergo sum a bum