Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • That is very clever!

    A random idea: measuring the degree of redundancy in a Perl source file. I think it'd have to be something other that just simple text redundancy, since you dan't want short symbol names (or hash key) being favored over long ones.

    • It was interesting to run it against things like XML/,, has only 3 repeated lines (of size 5 char or more).

      Of course the statistic needs to be weighted by the number of lines and length of the lines.

      What is debatable is whether one should toss single-line idioms such as

      @out = sort {$a $b} @list;

      which might occur in several places, into a single subroutine.