No such thing as a small change | |
PerlMonks |
Re: Perl's feature to determine, in current point of loop, that this is the last one?by ikegami (Patriarch) |
on Jan 23, 2022 at 08:44 UTC ( [id://11140741]=note: print w/replies, xml ) | Need Help?? |
Replace with
This will work too:
Warning: As LanX pointed out, the last snippet fails if two elements of the array are aliases of the same scalar. Update: Added warning.
In Section
Seekers of Perl Wisdom
|
|