Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl XML

by toolic (Bishop)
on Aug 13, 2009 at 18:36 UTC ( [id://788412]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %books;
    my $twig= new XML::Twig(
    ...
        $books{$id}{'price'         } = $book->first_child('price'       )
    +->text();
        $books{$id}{'publish_date'  } = $book->first_child('publish_date')
    +->text();
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
        $books{$id}{'price'         } = $book->first_child('price'       )
    +->text();
        $books{$id}{'publish_date'  } = $book->first_child('publish_date')
    +->text();
    }
    
  3. or download this
    $VAR1 = {
              'bk111' => {
    ...
                       }
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found