in reply to Problem with CGI::XML
use strict; use CGI::Pretty qw(book chapter); # for pretty XML my $c = new CGI; print $c->book( {-title=>"Programming Perl", -authors=>" Larry Wall, Tom Christian +sen, Jon Orwant"}, $c->chapter({-number=>1},"An Overview of perl"), $c->chapter({-number=>2},"Bits and Pieces"), $c->chapter({-number=>3},"Unary and Binary Operators"), );
output:
<book title="Programming Perl" authors=" Larry Wall, Tom Christiansen, + Jon Orwant"> <chapter number="1"> An Overview of perl </chapter> <chapter number="2"> Bits and Pieces </chapter> <chapter number="3"> Unary and Binary Operators </chapter> </book>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 2Re: Problem with CGI::XML
by jeffa (Bishop) on Feb 05, 2003 at 15:53 UTC |