in reply to Saving Results of a while loop

You've definitely got the right idea there - I too would be pushing the results into an array if I needed to reference them later in the program. But instead of the print "@fwlog\n"; line, I think you might be looking for something like this:
print join("\n", @fwlog), "\n";
... or ...
print $_, "\n" foreach @fwlog;
Both of which will print each element of the @fwlog array, which of course is comprised of the $line elements push-ed into it. If this doesn't work for you in the context that you need it, /msg me and together I'm sure that we could cook up something that meets jyour needs.
 

 
Ooohhh, Rob no beer function well without!