What if you try:

        delete($_->[2]);

?

On Dec 19, 2019, at 3:53 PM, Greg London <em...@greglondon.com> wrote:

>         External Email - Use Caution
>
> use Data::Dumper;
>
> sub killer{
>       delete($_[2]);
> }
>
> my @list = qw( alpha bravo charlie delta echo fox);
> print Dumper \@list;
> killer(@list);
> print Dumper \@list;
>
>
> I would expect the second Dumper statement to show one less element.
> Greg
>
> _______________________________________________
> Boston-pm mailing list
> Boston-pm@pm.org
> https://mail.pm.org/mailman/listinfo/boston-pm


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.

_______________________________________________
Boston-pm mailing list
Boston-pm@pm.org
https://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to