in reply to Re: Re: Re: Optimizing the bejeezus out of a sub
in thread Optimizing the bejeezus out of a sub
Depending on the type of $fh, you may well be making a method call for each print. Perl's method calls are fairly expensive, and the time for most of the call counts against the caller, not the callee.