From: Gregory Brown Date: 2009-09-04T01:14:27+09:00 Subject: Re: Data::Dumper for Ruby? On Thu, Sep 3, 2009 at 11:40 AM, Josef Wolf wrote: > On Fri, Sep 04, 2009 at 12:04:30AM +0900, Gregory Brown wrote: >> On Thu, Sep 3, 2009 at 11:00 AM, Josef Wolf wrote: > > > Thanks for the fast answers! > >>> One of the first things I am missing is something like perl's Data::Dumper >>> module.  This module is able to take a (nested) data structure and dump it >>> in perl syntax. >> >> Do you actually need the syntax preserved, or are you just trying to >> serialize data? > > The purpose is to check whether the data structures I have built (or am about > to build) are how they should be.  So the important thing here is that it is > easy to grasp visually. try require "pp" pp my_obj