in reply to Re: Use function as a regex
in thread Use function as a regex

Heh, that's quite slick, thanks! :)

Might I ask where you found that tidbit? I swear I read the docs, so I must have overlooked that somewhere. I'd like to get an understanding of how and why that works properly.

Replies are listed 'Best First'.
Re^3: Use function as a regex
by Eily (Monsignor) on Feb 15, 2018 at 17:01 UTC

    I don't think you'll find it as is in the doc. It's a side effect of the "@{ REF }" interpolation where REF can actually be an arbitrary expression, so it can be an anonymous array ref that only contains the one element you want. It's known as a secret operator.