Re: [Boston.pm] delete($_[2]); doesn't

"Morse, Richard E.,MGH via Boston-pm" <[email protected]> Thu, 19 Dec 2019 21:22:18 +0000
Newsgroups gmane.comp.lang.perl.perl-mongers.boston
Message-ID <[email protected]>
What if you try:

	delete($_->[2]);

?

On Dec 19, 2019, at 3:53 PM, Greg London <email-2Ro/Dj86MvDSUeElwK9/[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


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.