Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 4262
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: bzm [...] 2bz.de
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.56
Fixed in: (no value)

Attachments


Subject: example/cb_example.pl
Download (untitled) / with headers
text/plain 155b
Hi, a look into the example for callbacks ( cb_example.pl ) show some errors. Please apply the attached patch to make the example working out of the box.
Download fix-cb_example.diff
text/x-diff 743b
diff -ur a/example/cb_example.pl b/example/cb_example.pl --- a/example/cb_example.pl 2003-11-01 15:37:52.000000000 +0100 +++ b/example/cb_example.pl 2003-11-01 15:41:01.000000000 +0100 @@ -1,4 +1,5 @@ use XML::LibXML; +use IO::File; # first instanciate the parser my $parser = XML::LibXML->new(); @@ -29,10 +30,10 @@ my $handler = new IO::File; if ( not $handler->open( "<$uri" ) ){ - $file = 0; - } - - return $file; + $handler = 0; + } + + return $handler; } sub read_uri { @@ -40,7 +41,7 @@ my $length = shift; my $buffer = undef; if ( $handler ) { - $handler->read( $rv , $length ); + $handler->read( $buffer, $length ); } return $buffer; }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.