Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Expression form of map or grep

by haukex (Bishop)
on Jul 10, 2020 at 20:00 UTC ( #11119159=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perlcritic 11119158.pl 
    Expression form of "map" at line 8, column 12.  See page 169 of PBP.  
    +(Severity: 4)
    ...
    
            @mapped = map   transform($_),   @list;      #not ok
            @mapped = map { transform($_) }  @list;      #ok
    
  2. or download this
    $ cat ~/.perlcriticrc 
    
    ...
    
    [BuiltinFunctions::RequireBlockMap]
    severity = 2
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2020-12-04 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (60 votes). Check out past polls.

    Notices?