On 12/19/19 5:22 PM, Conor Walsh wrote:
That's not how delete works in this context. Try $_[2]="changed!";
perldoc warns about delete on arrays:
Calling "delete" on array values is strongly discouraged.
The notion of deleting or checking the existence of Perl array
elements is not conceptually coherent, and can lead to
surprising
behavior.
perldoc -f delete has more on this. it does NOT remove the element or
shift others down. use splice (or shift) for that.
delete is really only for hashes. the whole concept of delete on arrays
is goofy as the docs warn.
uri
_______________________________________________
Boston-pm mailing list
Boston-pm@pm.org
https://mail.pm.org/mailman/listinfo/boston-pm