#!/usr/bin/perl use strict; use warnings; use HTML::TokeParser; my $Text; { local $/; $Text = ; } my $p = HTML::TokeParser->new( \$Text ); while ( my $token = $p->get_tag('td') ) { my $txt = $p->get_trimmed_text("/td"); print $txt,"\n"; } __DATA__ ... SomeNameHere (Transaction ID #5HN04039SW052A35R)



...Name of the first item 14...

...Name of the second item 12...