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

yeah, but and I also didn't mention dereferencing @{...} etc., but those belong to the same domain like @{name} and the un-strict symbolic derefs @{"na"."me"}

in short: outside strings (and offsprings like regex) are curlies meant for the domains of

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

Replies are listed 'Best First'.
Re^4: Aren't there code refs as well as function refs?
by tobyink (Canon) on Mar 05, 2023 at 15:03 UTC

    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; };
      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