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

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

by choroba (Archbishop)
on Jul 09, 2020 at 05:37 UTC ( #11119065=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    chomp( my @list = <$fh> );
    
  2. or download this
    my @ids = map s/ /_/gr, 
              grep defined,
              @base;
    
  3. or download this
    for (@$list) {
        if (ref) {
    ...
            $_ = ...;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2021-01-15 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?