Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Don't ask to ask, just ask
 
PerlMonks  

Re: Help with Dumping data. Manipulate hashes output.

by MidLifeXis (Prior)
on Jun 05, 2012 at 17:38 UTC ( #974511=note: print w/ replies, xml ) Need Help??


in reply to Help with Dumping data. Manipulate hashes output.

Is there a reason that instead of

my $data= (Dumper $res->valueof('//listPhoneByNameResponse/return/phon +e'));
you cannot just use the data structure directly?
my $data= [ $res->valueof('//listPhoneByNameResponse/return/phone') ];
Why do the round trip through Data::Dumper and eval?

Update: made results into arrayref, as it appears that is the intent of the original code.

--MidLifeXis


Comment on Re: Help with Dumping data. Manipulate hashes output.
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://974511]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (17)
As of 2013-05-24 18:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (511 votes), past polls