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

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

by Tux (Abbot)
on Jul 09, 2020 at 08:35 UTC ( #11119074=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list       = map {                 s/\r\n$//r  } <$fh>; 
    my @uc_list    = map {              uc s/\r\n$//r  } <$lc_fh>; 
    my @split_list = map {[ split m/\|/ => s/\r\n$//r ]} <$piped_fh>;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-01-23 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?