in reply to How do I read .pag files
Often a .pag file comes together with an .idx .dir file if it is a BerkeleyDB file. See DB_File.
In general, you will have to hope that your Perl has the same version of BerkeleyDB as the generating program.