in reply to Diamond operator iterating over arrays?

I think the <...> acts as a glob here:

In scalar context, glob iterates through such filename expansions, returning undef when the list is exhausted.

Replies are listed 'Best First'.
Re^2: Diamond operator iterating over arrays?
by moritz (Cardinal) on Oct 28, 2009 at 23:41 UTC
    That's right, and the array is imply interpolated into the string.

    You can see that by interpolating an array with items that contain whitespaces:

    $ perl -e '@a = ("2 3", 4); while (<@a>) { print $_ ."\n";}' 2 3 4
    Perl 6 - links to (nearly) everything that is Perl 6.