in reply to string automation
You may find it useful to look at HTML::TokeParser::Simple, which has a tutorial on PM here