On Sun, Aug 02, 2015 at 03:09:07PM +0200, Moritz Lenz wrote:
: If you want to extract it from the scalar, use the @ again, this
: time as a prefix:
:
: for @$s { } # two iterations again.

Advertising

Note that this distinction will go away after the Great List Refactor,
so Gabor gets his wish. Part of the GLR is to remove most of the
itemization/listification uses of Scalar, since we're also getting rid
of most of the auto-flattening contexts that itemization was designed
to protect against. This is last major semantic simplification we're
doing before releasing Perl 6 later this year.
Larry