Skip Menu |

This queue is for tickets about the App-SimulateReads CPAN distribution.

Report information
The Basics
Id: 123761
Status: open
Priority: 0/
Queue: App-SimulateReads

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

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



Subject: Unknown warnings category 'experimental::smartmatch' (0.07)
The test suite fails for older perls (< 5.18): ... # Failed test 'use App::SimulateReads::CLI;' # at /usr/perl5.16.3t/lib/site_perl/5.16.3/Test/UseAllModules.pm line 71. # Tried to use 'App::SimulateReads::CLI'. # Error: Unknown warnings category 'experimental::smartmatch' at lib/App/SimulateReads/Base.pm line 7. # BEGIN failed--compilation aborted at lib/App/SimulateReads/Base.pm line 7. # Compilation failed in require at lib/App/SimulateReads/CLI.pm line 4. # BEGIN failed--compilation aborted at lib/App/SimulateReads/CLI.pm line 4. # Compilation failed in require at /usr/perl5.16.3t/lib/site_perl/5.16.3/Test/UseAllModules.pm line 71. # BEGIN failed--compilation aborted at /usr/perl5.16.3t/lib/site_perl/5.16.3/Test/UseAllModules.pm line 71. ... (etc) ... Probably you have to use something like use if $] >= 5.018, warnings => "experimental::smartmatch" (or replace "use" by "no"; I did not look at the code)
On 2017-11-27 09:59:33, SREZIC wrote: Show quoted text
> Probably you have to use something like > > use if $] >= 5.018, warnings => "experimental::smartmatch" > > (or replace "use" by "no"; I did not look at the code)
You can also do: use experimental 'smartmatch'; ...which takes care of the version check for you. Alternatively, don't use smartmatch :)
On 2017-11-27 14:59:07, ETHER wrote: Show quoted text
> On 2017-11-27 09:59:33, SREZIC wrote: >
> > Probably you have to use something like > > > > use if $] >= 5.018, warnings => "experimental::smartmatch" > > > > (or replace "use" by "no"; I did not look at the code)
> > > You can also do: use experimental 'smartmatch'; > ...which takes care of the version check for you.
But this would be an extra dependency --- experimental.pm is not part of perl 5.18 and earlier.