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

"Morse, Richard E.,MGH via Boston-pm" <[email protected]> Thu, 19 Dec 2019 21:24:29 +0000
Newsgroups gmane.comp.lang.perl.perl-mongers.boston
Message-ID <[email protected]>
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