Sorry, should have tested first, that doesn’t work. On Dec 19, 2019, at 4:22 PM, Morse, Richard E.,MGH <remo...@mgh.harvard.edu> wrote:
> 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 _______________________________________________ Boston-pm mailing list Boston-pm@pm.org https://mail.pm.org/mailman/listinfo/boston-pm