Sorry, should have tested first, that doesn’t work. On Dec 19, 2019, at 4:22 PM, Morse, Richard E.,MGH <[email protected]> wrote:
> What if you try: > > delete($_->[2]); > > ? > > On Dec 19, 2019, at 3:53 PM, Greg London <[email protected]> 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 >> [email protected] >> https://mail.pm.org/mailman/listinfo/boston-pm _______________________________________________ Boston-pm mailing list [email protected] https://mail.pm.org/mailman/listinfo/boston-pm

