in reply to accessing DOM from Perl?

It's not very clear what you mean due to insufficient details.