in reply to Re^2: Another Reason RTFMing Is A Good Thing
in thread Another Reason RTFMing Is A Good Thing

I am not sure I understand what you mean by (mis)using state. Is it not intended to ensure a variable is only initialized once?
Yes, in order to keep state. But your code obviously does not want to keep state. Just because you can call $hs->eof doesn't mean I would do that. Is HTML::Strip->new such an expensive call compared to $hs->eof that it's worthwhile to avoid calling it?

Replies are listed 'Best First'.
Re^4: Another Reason RTFMing Is A Good Thing
by Limbic~Region (Chancellor) on Oct 19, 2009 at 17:34 UTC
    JavaFan,
    Thank you. I now clearly see your point. Since this code is being written for a client who wants to understand all of the code, I will make it more clear. The client has also expressed a desire for optimizing for run time but I can show him how Benchmark works and let them decide for themselves (I suspect my way is marginally faster). Thanks again.

    Cheers - L~R