home.social

#perlcritic — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #perlcritic, aggregated by home.social.

  1. @regehr @commodore @dev There is even a (low-severity, a/k/a “cruel”) #PerlCritic policy to discourage everything but $_, @_, $], and numbered #RegularExpression capture variables: metacpan.org/pod/Perl::Critic:

    metacpan.org/pod/Perl::Critic: already protects you against the performance-sapping $`, $&, and $' match variables

    And you can configure your own prohibited list with metacpan.org/pod/Perl::Critic:

    #Perl #RegEx #RegExp #RegExes #RegExps

  2. @sjn @cb 99% of the “#Perl is line noise” complaints are because of unformatted #RegularExpressions. Every language worth anything eventually supports them, but only @Perl (and #awk, earlier) makes them first-class citizens. And with Perl you can format and comment them for readability: perldoc.perl.org/perlretut#Emb

    We format the rest of our code for humans. Why not #regexps?

    #PerlCritic can warn against bad regexps: metacpan.org/search?size=200&q

    #regex #regexes #programming #coding #SoftwareDevelopment