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
In reply to Re^2: Another Reason RTFMing Is A Good Thing
by Limbic~Region
in thread Another Reason RTFMing Is A Good Thing
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |