in reply to Re^4: Check if key exist in hash but not exact match
in thread Check if key exist in hash but not exact match

G'day ibm1620,

The @{[...]} construct is one of many that are referred to as "Perl secret operators and constants".

This one, called "Baby cart", has been around for a very long time. Follow that link for an answer to your question as well as other information.

I have been using it since the 1990s and, as I recall, wasn't even aware that it was a perlsecret until much later. I think I first encountered it in one of the "O'Reilly Perl books". I don't remember which one; although, "Advanced Perl Programming" is a likely candidate. Note that's the original edition; "Advanced Perl Programming, 2nd edition" is completely different — a very poor choice of title in my opinion.

— Ken

Replies are listed 'Best First'.
Re^6: Check if key exist in hash but not exact match
by ibm1620 (Hermit) on Apr 05, 2023 at 12:11 UTC
    *contented sigh*

    I love Perl.