Skip Menu |

This queue is for tickets about the Algorithm-Permute CPAN distribution.

Report information
The Basics
Id: 122432
Status: resolved
Priority: 0/
Queue: Algorithm-Permute

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

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



Subject: permute is not exported anymore
It seems that a "require Exporter" is missing. Currently this does not work anymore: $ perl5.24.1 -e 'use warnings; use Algorithm::Permute "permute"; @x=(1..4); permute { } @x' Can't locate object method "permute" via package "1" (perhaps you forgot to load "1"?) at -e line 1. Interestingly, only perl 5.10.1 issues a warning that something goes wrong by just use'ing the module: $ perl5.10.1 -e 'use warnings; use Algorithm::Permute "permute";' Can't locate package Exporter for @Algorithm::Permute::ISA at -e line 1.
Thanks! It's now fixed in 0.15 On Mon Jul 10 17:08:46 2017, SREZIC wrote: Show quoted text
> It seems that a "require Exporter" is missing. Currently this does not > work anymore: > > $ perl5.24.1 -e 'use warnings; use Algorithm::Permute "permute"; > @x=(1..4); permute { } @x' > Can't locate object method "permute" via package "1" (perhaps you > forgot to load "1"?) at -e line 1. > > Interestingly, only perl 5.10.1 issues a warning that something goes > wrong by just use'ing the module: > > $ perl5.10.1 -e 'use warnings; use Algorithm::Permute "permute";' > Can't locate package Exporter for @Algorithm::Permute::ISA at -e line > 1.