in reply to Re: How to print Hash with multidimensional keys
in thread How to print Hash with multidimensional keys

Certainly this helped.

But is there any way that this output can be formatted (say pipe separated for a particular key wise etc? So as it prints
key1_val|key2_val|key3_val|element_val \n
And so on?

Of course now I will study more abourt Dumbper class

Thanks
  • Comment on Re: Re: How to print Hash with multidimensional keys

Replies are listed 'Best First'.
Re: Re: Re: How to print Hash with multidimensional keys
by George_Sherston (Vicar) on Jun 05, 2002 at 10:20 UTC
    As you've probably seen from the Data::Dumper docs, several output formats are offered, one of which may suit your needs.

    In any event, the Dumper output follows regular rules, so you can write regexes to convert it to whatever format was useful. Arguably it's quicker to let Data::Dumper turn it into a regular format and then regex, than try to iterate through and do the conversion yourself.

    When I have done this, I've always been glad when I remembered the /s regex modifier ;)

    § George Sherston