in reply to Data::Dumper in perl-only?

I think perhaps you'd be better working off of the stringified form of an object (IO::Handle=GLOB(0xb6050)), rather then it's ref() type (IO::Handle), or better yet, both (use ref(), then if it isn't a recognized type, stringification and a regex to get the blessing and basic type).

TACCTGTTTGAGTGTAACAATCATTCGCTCGGTGTATCCATCTTTG ACACAATGAATCTTTGACTCGAACAATCGTTCGGTCGCTCCGACGC

Replies are listed 'Best First'.
Re: Re: Data::Dumper in perl-only?
by jhanna (Scribe) on Jan 24, 2002 at 09:12 UTC
    Ahhh... very interesting... See, this is why I need Perl Monks to enlighten me. I wouldn't have guessed that the stringified version gave more than ref() did. Thanks, theorbtwo!
      Er. Actually you want to watch out that the objects dont have "" overloaded.

      In order to be totally safe you need to use

      overload::StrVal($obj)
      Also, instead of the above mentioned Data::Denter (which I dont like) I would recommend Data::Dump (which I do).

      Yves / DeMerphq
      --
      Data::PrettySimple

        Ahhh.. Data::Dump is so much nicer than Data::Dumper. I like it too!