Perl: @* variable?

Looking for some clarity. I’ve seen some solutions with constructs like this:


I’ve never seen that before. I am guessing it is returning an array of all the items in elements?

I was hoping someone could give me a more technical explanation and/or a pointer to official docs. I can’t seem to construct a Google search that actually returns anything useful with those two characters. :confused:

This is Postfix Dereference Syntax.

1 Like

THANK-YOU!!! Much appreciated.

FYI this is also touched upon in the Perl concept on references: References in Perl on Exercism

1 Like

Oooh, thank-you. I’m new to the Exercism site and still finding my way around it. I’d not seen this documentation at all. I’m sure the link was in plain sight somewhere, but I managed to read past it. Thanks.