Filehandle Filter cuts more to the chase and if you go to Filter::Handle by brott and read the doc there's even an example on how to put a Filehandle's output to a string and at that point, an array is trivial.
And More:This recent node shows some clues as well: The art of error handlingIn reply to Re: STDERR
by lemming
in thread STDERR
by jettero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |