Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by Marshall (Canon)
on Jul 09, 2020 at 05:42 UTC ( #11119066=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$//; $_} <$fh>; 
    my @uc_list    = map { s/\r\n$//; uc $_; $_} <$lc_fh>; 
    my @split_list = map { s/\r\n$//; split(/\|/, $_); [@$_] } <$piped_fh>
    +;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-01-23 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?