From: Grant M. <gr...@us...> - 2004-11-20 00:40:24
|
Update of /cvsroot/perl-xml/xml-simple/lib/XML/Simple In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23672/lib/XML/Simple Modified Files: FAQ.pod Log Message: - add mising comma (spotted by Philip Wooldridge) Index: FAQ.pod =================================================================== RCS file: /cvsroot/perl-xml/xml-simple/lib/XML/Simple/FAQ.pod,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- FAQ.pod 9 Sep 2003 09:35:11 -0000 1.5 +++ FAQ.pod 20 Nov 2004 00:40:15 -0000 1.6 @@ -475,7 +475,7 @@ You probably want to be as specific as you can be too. For instance, the safest way to parse the E<lt>catalogE<gt> example above would be: - my $catalog = XMLin($xml, keyattr => { part => 'partnum'} + my $catalog = XMLin($xml, keyattr => { part => 'partnum'}, forcearray => ['part']); By using the hashref for keyattr, you can specify that only E<lt>partE<gt> |