in reply to How do I read .pag files

file FILENAME is giving 'data' as an output

hexdump -C FILENAME | head gave no result

What I was able to gather from Web is that , It .pag is a file format created by Activestate perl distribution

Also, In my case, the file is being read/write using IO.pm .. so yes it is being created by a perl program

Hope this helps, I cannot provide a code(not allowed to)

Thanks & Regards

Replies are listed 'Best First'.
Re^2: How do I read .pag files
by marto (Cardinal) on Apr 12, 2017 at 11:15 UTC

    A web search for "ActiveState pag" returns this which may be of interest, the remainder of the results don't look useful. Consider contacting ActiveState?

Re^2: How do I read .pag files
by Anonymous Monk on Apr 12, 2017 at 11:26 UTC
    file FILENAME is giving 'data' as an output

    hexdump -C FILENAME | head gave no result

    "file" would say "empty" if the file was empty, so hexdump must have generated output. What does the output of hexdump look like?

      $file filename.state.pag filename.state.pag: data
      $hexdump -C filename.state.pag hexdump: filename.state.pag: No such file or directory hexdump: filename.state.pag: Bad file descriptor

        is there a filename.state.dir file too? if so based on the link from marto this may work;

        use strict;; use warnings; use Fcntl; # For O_RDWR, O_CREAT, etc. use SDBM_File; my $filename='filename.state'; my %hash; tie(%hash, 'SDBM_File', $filename, O_RDWR|O_CREAT, 0666) or die "Couldn't tie SDBM file 'filename': $!; aborting"; use Data::Dumper; print Dumper(\%hash);
        I would make a copy of the two files first, then run off of the copies, just to make sure.