in reply to Re: Perl::Critic says don't modify $_ in list functions and other things
in thread Perl::Critic says don't modify $_ in list functions and other things
I hope I’m not being obtuse and about to embarrass myself but…
# Why this? my @b = apply { $_ = uc($_);} @a; # Instead of this, or a more verbose version of it? my @b = map uc, @a;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl::Critic says don't modify $_ in list functions and other things
by AnomalousMonk (Archbishop) on Jul 09, 2020 at 14:34 UTC | |
Re^3: Perl::Critic says don't modify $_ in list functions and other things
by ikegami (Patriarch) on Jul 12, 2020 at 14:40 UTC |
In Section
Seekers of Perl Wisdom