Using Data::Dumper to display XML in Perl

Input XML:

    mani reddy <a style="text-decoration: none;color: inherit;cursor: default" href="http://paydayadvanceusca.com/">http://paydayadvanceusca.com/</a>  3/10 mani@w3mentor.com   <a style="text-decoration: none;color: inherit;cursor: default" href="http://paydayloansusca.com/">paydayloansusca.com</a>  deva chauhan 4/15 pdeva@w3mentor.com

Dumping using payday loans wichita ks Data::Dumper

 #!/usr/bin/perl use strict; use XML::Simple; use Data::Dumper; my <a style="text-decoration: none;color: inherit;cursor: default" href="http://paydayloansnearmeus.com/how_it_works.html">http://paydayloansnearmeus.com/how_it_works.html</a>  $xml = XMLin('./input.xml',forcearray =&gt; 1); <a style="text-decoration: none;color: inherit;cursor: default" href="http://paydayloansonlinecaus.com/">payday loans online</a>  print Dumper($xml);

Unformatted Output:

$VAR1 = { ‘customer’ => [ { ’email’ => [ ‘mani@w3mentor.com’ instant payday loans ], ‘dob’ => [ ‘3/10’ ], ‘last_name’ => [ ‘reddy’ ], ‘first_name’ => payday 2 wiki [ ‘deva’ ] }, { ’email’ => [ ‘pdeva@w3mentor.com’ ], ‘dob’ => [ ‘4/15’ ], ‘last_name’ => [ http://paydayadvanceusca.com/ ‘chauhan’ ], payday 2 wiki ‘first_name’ http://paydayloansonlinecaus.com => [ ‘Sandy’ ] } ] };

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.