Skip Menu |

This queue is for tickets about the ODF-lpOD CPAN distribution.

Report information
The Basics
Id: 97977
Status: open
Priority: 0/
Queue: ODF-lpOD

People
Owner: Nobody in particular
Requestors: DJIBEL [...] cpan.org
Cc:
AdminCc:

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



Subject: Unknown method DESTROY
Dear, I am using ODF::lpOD 1.126. my $doc = ODF::lpOD::Document->get($template_article); my $contexte = $doc->get_body; # <===== make a warning This code, this line with get_body make warning lines Unknown method DESTROY I have more than 100 lines Unknown method DESTROY Unknown method DESTROY Unknown method DESTROY Unknown method DESTROY ... The program works but I have more than 100 lines warning with the same message. I have this problem when I use ActivePerl 5.14 or 5.16 x86. If I use ActivePerl 5.14 or 5.16 x64, no warnings. If I use Strawberry 5.20 x64, no problem. Best Regards
Dear, I have this problem on Mac OS with Perl 5.12.3 and ODF::lpOD 1.126 Best Regards
Le Lun 10 Aoû 2015 12:27:18, DJIBEL a écrit : Show quoted text
> Dear, > > I have this problem on Mac OS with Perl 5.12.3 and ODF::lpOD 1.126 > > Best Regards > >
On the same MAC, I have upgraded to perl 5.22 and now I have not warning messages.
From: info [...] tokon.net
On Perl 5.24.0 (Debian Jessie with Perlbrew) this error message reappears.
From: info [...] tokon.net
A workaround is to add a dummy method sub DESTROY {} at Element.pm line 2321.
FWIW, the perldelta for 5.24, under Selected Bug Fixes, says "The AUTOLOAD method is now called when searching for a DESTROY method, and correctly sets $AUTOLOAD too. [perl #124387] [perl #127494]"
Le Sam 11 Juin 2016 20:32:12, WYANT a écrit : Show quoted text
> FWIW, the perldelta for 5.24, under Selected Bug Fixes, says "The > AUTOLOAD method is now called when searching for a DESTROY method, and > correctly sets $AUTOLOAD too. [perl #124387] [perl #127494]"
Dear, I am using perl 5.24 now but i have always the warning message.
Vid Sun, 17 Jul 2016 kl. 06.56.36, skrev DJIBEL: Show quoted text
> Le Sam 11 Juin 2016 20:32:12, WYANT a écrit :
> > FWIW, the perldelta for 5.24, under Selected Bug Fixes, says "The > > AUTOLOAD method is now called when searching for a DESTROY method, and > > correctly sets $AUTOLOAD too. [perl #124387] [perl #127494]"
> > > Dear, > > I am using perl 5.24 now but i have always the warning message.
Put this in your code to silence the warnings: use ODF::lpOD; { package ODF::lpOD::Element; sub DESTROY {} }
Vid Mon, 18 Dec 2017 kl. 15.08.48, skrev BPJ: Show quoted text
> Vid Sun, 17 Jul 2016 kl. 06.56.36, skrev DJIBEL:
> > Le Sam 11 Juin 2016 20:32:12, WYANT a écrit :
> > > FWIW, the perldelta for 5.24, under Selected Bug Fixes, says "The > > > AUTOLOAD method is now called when searching for a DESTROY method, and > > > correctly sets $AUTOLOAD too. [perl #124387] [perl #127494]"
> > > > > > Dear, > > > > I am using perl 5.24 now but i have always the warning message.
> > Put this in your code to silence the warnings: > > use ODF::lpOD; > > { > package ODF::lpOD::Element; > > sub DESTROY {} > } >
Or even better (future proof!): { package ODF::lpOD::Element; no warnings 'once'; *DESTROY = sub {} unless defined &DESTROY; }