These are the TeX::DVI and TeX::DVI::Parse modules.
Download TeX-DVI-1.01.tar.gz with the latest release.
use TeX::DVI;
my $dvi = new TeX::DVI "texput.dvi";
$dvi->preamble();
$dvi->begin_page();
use TeX::DVI::Print;
my $dvi_parse = new TeX::DVI::Print("test.dvi");
$dvi_parse->parse();
Copyright: (c) 1996--2011 Jan Pazdziora.
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.