http://qs321.pair.com?node_id=11140852


in reply to Re^5: Perl's feature to determine, in current point of loop, that this is the last one?
in thread Perl's feature to determine, in current point of loop, that this is the last one?

unfortunately no, but good idea nonetheless ... :)

Good catch. I'll add a warning to my answer that first suggested the idea.

I'm not even sure that experimental feature is even needed...

Correct.

my $inputs = sub { \@_ }->( 0, $x, $x ); for my $v (@$inputs) { say \$v; }
SCALAR(0x559bb5b21960) SCALAR(0x559bb5b33228) SCALAR(0x559bb5b33228)

I imagine that would Data::Alias can also achieve this.

  • Comment on Re^6: Perl's feature to determine, in current point of loop, that this is the last one?
  • Select or Download Code