Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

nstore to Data::Dumper

by Anonymous Monk
on Jan 09, 2003 at 07:50 UTC ( [id://225477]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://225477]
Approved by boo_radley
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found