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

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

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
June 7, 2013 14:45
Subject:
Re: [perl #24482] 5.8.2: sort CORE::keys() results in subroutine insort
Message ID:
20130607144513.GC16590@cancer.codesimply.com
* 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.

-- 
rjbs

Thread Previous | Thread Next


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