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