in reply to flushing the data from array

High level arrays have little or nothing to do with buffering and displaying data. Perhaps you need to show us a little code that demonstrates your issue. Generate a minimal runable sample that shows the issue and remember to describe what you see and what you expect.


Perl is environmentally friendly - it saves trees