develooper Front page | perl.perl6.users | Postings from April 2020

Re: regex objects as hash keys

Thread Previous | Thread Next
Elizabeth Mattijsen
April 6, 2020 08:13
Re: regex objects as hash keys
Message ID:
> On 6 Apr 2020, at 07:19, Joseph Brenner <> wrote:
>> If you want a Hash which allows any
> kind of object as key, you have to declare it such:
>>  my $obj =;
>> my %vegeout{Any};  # <-- see:
> That's an interesting detail, I didn't get that that behavior wasn't
> the default.

Object hashes currently come with a performance penalty.  That's why they are currently not the default.
Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About