Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Perl::Critic says don't modify $_ in list functions and other things

by AnomalousMonk (Bishop)
on Jul 09, 2020 at 14:34 UTC ( #11119089=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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'll take the liberty of answering for ikegami and guess that
    my @b = apply { $_ = uc($_);} @a;
is just a quick example of the use of apply put together to be consistent with the preceding code
    my @b = map { $_ = uc($_); $_ } @a;
which was itself just a quick example put together to demonstrate a particular problem. I'd be very surprised if ikegami suggested it | either for production code.


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11119089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2020-09-26 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (142 votes). Check out past polls.

    Notices?