Sponsored Content
The Lounge What is on Your Mind? The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch Post 303028518 by Don Cragun on Thursday 10th of January 2019 01:09:55 AM
Old 01-10-2019
Hi Wolf,
Congratulations on this well deserved award.

Cheers,
Don
This User Gave Thanks to Don Cragun For This Post:
 

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

Four More UNIX.COM Achievement Award Badges to Award

Happy New Year! There are currently four UNIX.COM achievement awards up for grabs, as the say. Here they are, in no particular order: The Order of the Raven The Order of the Hippo The Order of the Spider The Order of the Dragon Don't ask me what they mean, or who who will get those... (0 Replies)
Discussion started by: Neo
0 Replies

2. What is on Your Mind?

The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Corona688

Congrats to Corona688 for a much deserved and long overdue lifetime achievement award badge from UNIX.COM in computer wizardry: "The Order of the Wizard's Hat - Lifetime Achievement Award" This "Order of the Wizard's Hat" is presented to Corona688 in 2019 for UNIX Wizardry and his continued... (6 Replies)
Discussion started by: Neo
6 Replies

3. What is on Your Mind?

The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wisecracker

Congrats to wisecracker for the first lifetime achievement award badge from UNIX.COM in computer wizardry: "The Order of the Wizard's Hat - Lifetime Achievement Award" The first "Order of the Wizard's Hat" is presented to wisecracker in 2019 for RF Electronics Engineering and Computer... (6 Replies)
Discussion started by: Neo
6 Replies

4. What is on Your Mind?

The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to RudiC

Please join me in congratulating RudiC for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry: "The Order of the Wizard's Hat - Lifetime Achievement Award" This "Order of the Wizard's Hat" is presented to RudiC for Computer Wizardry in the UNIX Operating... (10 Replies)
Discussion started by: Neo
10 Replies

5. What is on Your Mind?

The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Scrutinizer

Please join me in congratulating Scrutinizer for his long overdue lifetime achievement award badge from UNIX.COM in computer wizardry: "The Order of the Wizard's Hat - Lifetime Achievement Award" This "Order of the Wizard's Hat" is presented to Scrutinizer for Computer Wizardry in the UNIX... (7 Replies)
Discussion started by: Neo
7 Replies

6. What is on Your Mind?

Poster of the Year 2019 Award Announcement and Call for Nominations

Dear All, I am pleased to post that I am announcing a new award, "Poster of the Year 2019" and calling for your nominations (privately to me). This is a new award and I plan to announce the winner for this year (2019) in January 2020. The prizes will be (still working out the details): ... (0 Replies)
Discussion started by: Neo
0 Replies

7. What is on Your Mind?

Moderator of the Year 2019 Award Announcement Only

Dear All, We are happy to post that I will be announcing soon my award for "Moderator of the Year 2019". This is a new award which I plan to announce in December of each year, starting this year (2019). The prizes will be (still working out the details): A Moderator of the Year... (3 Replies)
Discussion started by: Neo
3 Replies
Perl::Critic::Policy::ControlStructures::ProhibitMutatinUsertContributed)Perl::Critic::Policy::ControlStructures::ProhibitMutatingListFunctions(3)

NAME
Perl::Critic::Policy::ControlStructures::ProhibitMutatingListFunctions - Don't modify "$_" in list functions. AFFILIATION
This Policy is part of the core Perl::Critic distribution. DESCRIPTION
"map", "grep" and other list operators are intended to transform arrays into other arrays by applying code to the array elements one by one. For speed, the elements are referenced via a $_ alias rather than copying them. As a consequence, if the code block of the "map" or "grep" modify $_ in any way, then it is actually modifying the source array. This IS technically allowed, but those side effects can be quite surprising, especially when the array being passed is @_ or perhaps "values(%ENV)"! Instead authors should restrict in-place array modification to "for(@array) { ... }" constructs instead, or use "List::MoreUtils::apply()". CONFIGURATION
By default, this policy applies to the following list functions: map grep List::Util qw(first) List::MoreUtils qw(any all none notall true false firstidx first_index lastidx last_index insert_after insert_after_string) This list can be overridden the .perlcriticrc file like this: [ControlStructures::ProhibitMutatingListFunctions] list_funcs = map grep List::Util::first Or, one can just append to the list like so: [ControlStructures::ProhibitMutatingListFunctions] add_list_funcs = Foo::Bar::listmunge LIMITATIONS
This policy deliberately does not apply to "for (@array) { ... }" or "List::MoreUtils::apply()". Currently, the policy only detects explicit external module usage like this: my @out = List::MoreUtils::any {s/^foo//} @in; and not like this: use List::MoreUtils qw(any); my @out = any {s/^foo//} @in; This policy looks only for modifications of $_. Other naughtiness could include modifying $a and $b in "sort" and the like. That's beyond the scope of this policy. SEE ALSO
There is discussion of this policy at <http://perlmonks.org/index.pl?node_id=743445>. AUTHOR
Chris Dolan <cdolan@cpan.org> Michael Wolf <MichaelRWolf@att.net> COPYRIGHT
Copyright (c) 2006-2011 Chris Dolan. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2014-Perl::Critic::Policy::ControlStructures::ProhibitMutatingListFunctions(3)
All times are GMT -4. The time now is 12:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy