in reply to Output to file question

There's also IO::All but you can check comprehension at the door. It's perl voodoo. Here's how to write it once to a file:

use IO::All; $mac > io('/path/to/file.txt');

Or append it:

use IO::All; $mac >> io('/path/to/file.txt');