|
|
| P is for Practical | |
| PerlMonks |
Help with Dumping data. Manipulate hashes output.by oldwarrior32 (Sexton) |
| on Jun 05, 2012 at 17:02 UTC ( #974504=perlquestion: print w/ replies, xml ) | Need Help?? |
|
oldwarrior32 has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, I am new here and noob to Perl too, I would like to ask for some help. I have this piece of code(I think the full program is not necessary for the matter discused): my $data= (Dumper $res->valueof('//listPhoneByNameResponse/return/phone'));That part of the program brings the following output:
I need to parse the output, to create a table. I could make a new program and process all the anonymous hashes, but is there a way to tell the "Dumper" function to bring only one value a time? Something like this: print Dumper->${$VAR1}{"model"}; I think you got the idea. Any recomendation to parse a Data::Dumper output would be welcome. Thanks! I just want to say thank you all for your worthfull help. I just forgot about the Dumper module and made some modifications. At the end I just used the Text::Table module for practical purposes and it worked like a charm. Thanks again!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||