http://www.perlmonks.org?node_id=11101457


in reply to [Perl6] Seq iterator already consumed

From the documentation of lines it seems that it returns a Seq object.

But

say @dirs.^name;

returns Array, so it should be OK. But: split returns a Seq, too! Behold:

say @dirs[0].^name; # Seq

That's probably the problem.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]