Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello fellow monks. I just wanted to know if there was any way we could convert
a file which has been stored in the nstore
(Storable) form to Data::Dumper form.
I dont know if that seems something silly,
but i really need to know.
Any suggestions accepted.
Thanks

Replies are listed 'Best First'.
Re: nstore to Data::Dumper
by seattlejohn (Deacon) on Jan 09, 2003 at 08:01 UTC
    Have you already tried something like this?
    use Storable; use Data::Dumper; print Dumper retrieve('filename');

            $perlmonks{seattlejohn} = 'John Clyman';

      Thanx a lot
      i will try it out
Re: nstore to Data::Dumper
by Zaxo (Archbishop) on Jan 09, 2003 at 08:05 UTC

    One liner, $infile is your Storable file name, $out is a handle to the Data::Dumper file you write. print $out Dumper(retrieve $infile);

    After Compline,
    Zaxo