Skip Menu |

This queue is for tickets about the DBM-Deep CPAN distribution.

Report information
The Basics
Id: 35424
Status: resolved
Priority: 0/
Queue: DBM-Deep

People
Owner: Nobody in particular
Requestors: arunbear@gmail.com (no email address)
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.0009
Fixed in: (no value)



Subject: DBM::Deep breaks XML::Twig
Loading DBM::Deep in a program that uses XML::Twig produces the following fatal error: Can't locate object method "read" via package "FileHandle" at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser/Expat.pm line 469 Uncomment the line 'use DBM::Deep;' in the attached program to reproduce. Versions - Perl : 5.8.8 OS : CentOS 5 XML::Twig : 3.29 XML::Parser::Expat : 2.36
Subject: twigtest.pl
#!/bin/env perl use strict; use warnings; #use DBM::Deep; use XML::Twig; my $twig = XML::Twig->new( twig_handlers => { server => \&parse_data, } ); $twig->parse(*DATA); sub parse_data { my($t, $tag) = @_; print $tag->att('name') . "\n"; } __DATA__ <config logdir="/var/log/foo/" debugfile="/tmp/foo.debug"> <server name="sahara" osname="solaris" osversion="2.6"> <address>10.0.0.101</address> <address>10.0.1.101</address> </server> <server name="gobi" osname="irix" osversion="6.5"> <address>10.0.0.102</address> </server> <server name="kalahari" osname="linux" osversion="2.0.34"> <address>10.0.0.103</address> <address>10.0.1.103</address> </server> </config>
From: jjanes [...] gnf.org
On Fri Apr 25 09:46:35 2008, arun_red_sun@yahoo.co.uk wrote: Show quoted text
> Loading DBM::Deep in a program that uses XML::Twig produces the > following fatal error: > > Can't locate object method "read" via package "FileHandle" at >
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/Parser/Expat.pm Show quoted text
> line 469
Simply using FileHandle::Fmode, rather than DBM::Deep, is enough to trigger this error.
Subject: Re: [rt.cpan.org #35424] DBM::Deep breaks XML::Twig
Date: Wed, 14 May 2008 10:08:13 -0400
To: bug-DBM-Deep [...] rt.cpan.org
From: "Rob Kinyon" <rkinyon [...] cpan.org>
On Wed, Apr 30, 2008 at 11:35 PM, jjanes@gnf.org via RT <bug-DBM-Deep@rt.cpan.org> wrote: Show quoted text
> Simply using FileHandle::Fmode, rather than DBM::Deep, is enough > to trigger this error.
Given this, should this bug be closed and reopened against FileHandle::Fmode or is there work that needs to be done in DBM::Deep? Thanks, Rob
Subject: Re: [rt.cpan.org #35424] DBM::Deep breaks XML::Twig
Date: Sun, 18 May 2008 19:35:28 +0100
To: bug-DBM-Deep [...] rt.cpan.org
From: "Arun Persad" <arunbear [...] gmail.com>
Hi Rob, yes, it makes more sense to file the bug under FileHandle::Fmode Perhaps you add a mention of this issue in the DBM::Deep docs? thanks, Arun On Wed, May 14, 2008 at 3:08 PM, RKINYON via RT <bug-DBM-Deep@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=35424 > > > On Wed, Apr 30, 2008 at 11:35 PM, jjanes@gnf.org via RT > <bug-DBM-Deep@rt.cpan.org> wrote:
>> Simply using FileHandle::Fmode, rather than DBM::Deep, is enough >> to trigger this error.
> > Given this, should this bug be closed and reopened against > FileHandle::Fmode or is there work that needs to be done in DBM::Deep? > > Thanks, > Rob > >
As of 1.0012, FileHandle::Fmode is no longer required for DBM::Deep.