Skip Menu |
 

This queue is for tickets about the List-AllUtils CPAN distribution.

Report information
The Basics
Id: 89508
Status: resolved
Priority: 0/
Queue: List-AllUtils

People
Owner: Nobody in particular
Requestors: miyagawa [...] gmail.com
Cc:
AdminCc:

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



Subject: apply is broken with 0.06
Date: Mon, 14 Oct 2013 13:44:27 -0700
To: bug-List-AllUtils [...] rt.cpan.org
From: Tatsuhiko Miyagawa <miyagawa [...] gmail.com>
Download (untitled) / with headers
text/plain 368b
List::AllUtils 0.06 breaks dzil plugin ContributorsFromGit, which I broke down to: Show quoted text
> perl -MList::AllUtils=apply -e '@mult = apply { $_ *= 2 } @list;'
Array found where operator expected at -e line 1, near "} " (Missing operator before ?) syntax error at -e line 1, near "} @list" Execution of -e aborted due to compilation errors. -- Tatsuhiko Miyagawa
Subject: Re: apply is broken with 0.06
Date: Mon, 14 Oct 2013 13:48:18 -0700
To: bug-List-AllUtils [...] rt.cpan.org
From: Tatsuhiko Miyagawa <miyagawa [...] gmail.com>
Download (untitled) / with headers
text/plain 966b
The following patch seems to fix the issue. diff --git a/lib/List/AllUtils.pm b/lib/List/AllUtils.pm index dcb6261..9d6cd80 100644 --- a/lib/List/AllUtils.pm +++ b/lib/List/AllUtils.pm @@ -18,7 +18,7 @@ BEGIN { my %imported = map { $_ => 1 } @List::Util::EXPORT_OK; List::MoreUtils->import( grep { !$imported{$_} } - @{ $List::MoreUtils::EXPORT_TAGS{':all'} } ); + @{ $List::MoreUtils::EXPORT_TAGS{'all'} } ); } use base 'Exporter'; On Mon, Oct 14, 2013 at 1:44 PM, Tatsuhiko Miyagawa <miyagawa@gmail.com> wrote: Show quoted text
> List::AllUtils 0.06 breaks dzil plugin ContributorsFromGit, which I > broke down to: >
>> perl -MList::AllUtils=apply -e '@mult = apply { $_ *= 2 } @list;'
> Array found where operator expected at -e line 1, near "} " > (Missing operator before ?) > syntax error at -e line 1, near "} @list" > Execution of -e aborted due to compilation errors. > > > > -- > Tatsuhiko Miyagawa
-- Tatsuhiko Miyagawa
Download (untitled) / with headers
text/plain 941b
On Mon Oct 14 16:44:58 2013, miyagawa@gmail.com wrote: Show quoted text
> List::AllUtils 0.06 breaks dzil plugin ContributorsFromGit, which I > broke down to: >
> > perl -MList::AllUtils=apply -e '@mult = apply { $_ *= 2 } @list;'
> Array found where operator expected at -e line 1, near "} " > (Missing operator before ?) > syntax error at -e line 1, near "} @list" > Execution of -e aborted due to compilation errors.
(my email reply seemed to open a new ticket, sorry about that) here's a patch to fix the bug. diff --git a/lib/List/AllUtils.pm b/lib/List/AllUtils.pm index dcb6261..9d6cd80 100644 --- a/lib/List/AllUtils.pm +++ b/lib/List/AllUtils.pm @@ -18,7 +18,7 @@ BEGIN { my %imported = map { $_ => 1 } @List::Util::EXPORT_OK; List::MoreUtils->import( grep { !$imported{$_} } - @{ $List::MoreUtils::EXPORT_TAGS{':all'} } ); + @{ $List::MoreUtils::EXPORT_TAGS{'all'} } ); } use base 'Exporter';


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.