in reply to Re^3: Aren't there code refs as well as function refs?
in thread Aren't there code refs as well as function refs?

Technically the contents of ${...}, @{...}, %{...}, *{...}, and $#{...} are blocks, so you already covered them.

use v5.10; no strict 'refs'; our $abc = 123; say ${ my @name = qw/a b c/; join q//, @name; };

Replies are listed 'Best First'.
Re^5: Aren't there code refs as well as function refs?
by LanX (Saint) on Mar 05, 2023 at 17:41 UTC
    Hmm, indeed.

    Actually I was coming from the string-interpolation perspective, and didn't expect the following to "work"

    # https://perlmonks.org/?node_id=11150758 use v5.12.0; # incl. strict use warnings; no strict 'refs'; our @abc = 1..3; say "@{'a'.'bc'}";

    --->

    1 2 3

    Cheers Rolf
    (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
    Wikisyntax for the Monastery