drfrog has asked for the wisdom of the Perl Monks concerning the following question:

i just started looking into this does someone have any good examples? heres what i have so far: {from the perldoc} #!/usr/bin/perl use XML::XQL; use XML::XQL::DOM; use Data::Dumper; $parser = new XML::DOM::Parser; $doc = $parser->parsefile ("bookstore.xml"); $query = new XML::XQL::Query (Expr => "//first-name"); @result = $query->solve ($doc); $query->dispose; print Data::Dumper->Dump(@result); which is great but ugly i want to find a way to reprocess this to make it look kewl come on be my MonkAY

Replies are listed 'Best First'.
Re: XML::XQL examples
by TStanley (Canon) on Jan 24, 2001 at 07:25 UTC
    From now on, please use < code> and </code> tags to enclose your program.
    For example, your would look like the following if you put it in the above tags:
    #!/usr/bin/perl use XML::XQL; use XML::XQL::DOM; use Data::Dumper; $parser = new XML::DOM::Parser; $doc = $parser->parsefile ("bookstore.xml"); $query = new XML::XQL::Query (Expr => "//first-name"); @result = $query->solve ($doc); $query->dispose; print Data::Dumper->Dump(@result);

    TStanley
    In the end, there can be only one!
      yah i saw that after words
      
      is there any way to reedit?
      
      i guess previewing carefully
      would a been better
      :)
      
      
        If you are logged in, click here and there should be an edit box at the bottom of the page where you can change your post...

        --
        $you = new YOU;
        honk() if $you->love(perl)