in reply to Re: Another Reason RTFMing Is A Good Thing
in thread Another Reason RTFMing Is A Good Thing
higher in the file since I prefer to list all my subs at the bottom rather than the top of my file.my $hs = HTML::Strip->new();
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? My expectation was that it was parsing from a clean state - primarily because I hadn't properly RTFMd - I didn't realize $hs was maintaining state.
I guess what you are saying is that in the end, after I realized what was going on I should have made the code more clear. I think adding a comment would suffice:
$hs->eof(); # ensure each call to parse() is from a clean slate
That is in fact what I intend and what the module offers to allow it. If I have completely misunderstood you, please clarify. If you just disagree then I note your objection but do not agree with your position.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Another Reason RTFMing Is A Good Thing
by JavaFan (Canon) on Oct 19, 2009 at 16:08 UTC | |
by Limbic~Region (Chancellor) on Oct 19, 2009 at 17:34 UTC |