Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119089]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-19 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found