This queue is for tickets about the Perl-MinimumVersion CPAN distribution.

Report information
The Basics
Id:
81505
Status:
resolved
Priority:
Low/Low

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

BugTracker
Severity:
Normal
Broken in:
1.29
Fixed in:
1.30



Subject: keys % { $foo }
keys % { $foo } (a space added after %) needs v5.14.0 but is a normal operation.
On Wed Nov 28 02:27:38 2012, RYOCHIN wrote:
Show quoted text
> keys % { $foo } (a space added after %) needs v5.14.0 but is a normal > operation.
$ perl5.6.2 -le '$foo = {1..10}; print for keys % { $foo }' 7 9 1 3 5 I don’t have anything older to test with. A quick glance at the perl source suggests it has been this way since perl 5.000 (commit a0d0e21ea6ea), which added this to scan_ident in toke.c: @@ -3432,6 +3755,8 @@ I32 ck_uni; if (lex_brackets == 0) lex_fakebrack = 0; s++; + if (isSPACE(*s)) + s = skipspace(s); d = dest; if (isDIGIT(*s)) { while (isDIGIT(*s))
Sorry, what I wanted to say is:
Show quoted text
> cat a.pl
keys %{ $list }
Show quoted text
> cat b.pl
keys % { $list }
Show quoted text
> perlver a.pl
----------------------------------- | file | explicit | syntax | external | | ----------------------------------- | | a.pl | ~ | ~ | n/a | | ----------------------------------- | | Minimum explicit version : ~ | | Minimum syntax version : ~ | | Minimum version of perl : v5.4.0 (default) | -----------------------------------
Show quoted text
> perlver b.pl
------------------------------------ | file | explicit | syntax | external | | ------------------------------------ | | b.pl | ~ | v5.14.0 | n/a | | ------------------------------------ | | Minimum explicit version : ~ | | Minimum syntax version : v5.14.0 | | Minimum version of perl : v5.14.0 | ------------------------------------ perlver should consider 'keys % { $list }' is just an ordinary, traditional way which perl before 5.14 does as you refer. These two samples must result in the same, I think.
On Wed Nov 28 03:43:54 2012, RYOCHIN wrote:
Show quoted text
> perlver should consider 'keys % { $list }' is just an ordinary, > traditional way which perl before 5.14 does as you refer. These two > samples must result in the same, I think.
Fixed in 1.30 -- Alexandr Ciornii, http://chorny.net


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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