Skip Menu |

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

Report information
The Basics
Id: 88001
Status: resolved
Priority: 0/
Queue: ODF-lpOD

People
Owner: jmgdoc [...] cpan.org
Requestors: ftl [...] dnv.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.121
Fixed in: 1.125



Hi! Thanks for a great module! One issue is the use of ODF::lpOD on e.g. Strawberry Perl 5.18 generates a large number of warnings regarding "given", "when" and "smartmatch". I know you have used these quite a lot to get a very structured and maintainable code (ca 230 "given" etc). Several articles adresses these issues, addresses how to handle including: http://stackoverflow.com/questions/16927024/perl-5-20-and-the-fate-of-smartmatch-and-given-when Summary ----------------------------------------- given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Common.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Document.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Element.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Field.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/StructuredContainer.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Style.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Table.pm given is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/TextElement.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Common.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Document.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Element.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Field.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/StructuredContainer.pm line Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Style.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Table.pm Smartmatch is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/TextElement.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Common.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Document.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Element.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Field.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/StructuredContainer.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Style.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Style.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/Table.pm when is experimental at c:/strawberry/perl/site/lib/ODF/lpOD/TextElement.pm
I don't know any elegant way to deal with this Perl syntactic step back.

For the time being the only workaround consists of inserting the line below juste after 'use strict' in every module:

no warnings 'experimental::smartmatch';
A "use experimental" workaround is included in 1.122, uploaded today.
Le 2014-05-19 08:36:52, JMGDOC a écrit :
Show quoted text
> A "use experimental" workaround is included in 1.122, uploaded today.

Now looks OK from perl 5.10.1 to 5.20.0