develooper Front page | perl.perl5.porters | Postings from June 2013

[perl #24482] 5.8.2: sort CORE::keys() results in subroutine in sort

Thread Previous
From:
Father Chrysostomos via RT
Date:
June 8, 2013 03:29
Subject:
[perl #24482] 5.8.2: sort CORE::keys() results in subroutine in sort
Message ID:
rt-3.6.HEAD-2552-1370662156-292.24482-15-0@perl.org
On Fri Jun 07 07:45:54 2013, perl.p5p@rjbs.manxome.org wrote:
> * Father Chrysostomos via RT <perlbug-followup@perl.org> [2013-06-
> 04T23:37:36]
> > Actually, I think this *is* a bug, as CORE:: is supposed to
> disambiguate
> > and indicate a built-in keyword.
> >
> > sort CORE::lc($_) should therefore do the same thing as sort lc($_),
> and
> > treat ‘CORE::lc’ as a keyword, rather than a sort sub name.
> >
> > require happens to do the same thing as sort.  I consider this a
> bug,
> > too (the second one-liner should behave the same as the first):
> > [...]
> > Fixing this is trivial.  Are there any objectors?
> 
> Until somebody comes up with a good specific objection, I agree with
> you.
> 

I have just fixed it in commit 01b5ef5.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=24482

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About