in reply to Better way of finding HTML tags positions in HTML string
Looking at the source code for HTML::TagReader, it looks like the module only operates on files. That tells me that if you want to use this module, you'll need to create a (temporary) file, write your string into it, and go from there. The File::Temp module is a good choice for that.
In Section
Seekers of Perl Wisdom