in reply to The most common errors and warnings in Perl
Nice of you to ask us for our subjective impressions, but since we're programmers, some of us would rather automate the task. We would find a corpus of code samples and run them through perl -c.
use strict; use warnings; # create something that crawls PerlMonks # grabbing code snippets - # this is left as an exercise my $crawler; while (my $snippet = $crawler->next() ) { open my $writer, '>', 'temp.pl'; $snippet = <<"END_SNIPPET"; use strict; use warnings; $snippet END_SNIPPET print $writer $snippet; close $writer; system 'perl -c temp.pl 2>>err.txt'; }
Now you can analyze err.txt to find the most frequent messages.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The most common errors and warnings in Perl (crawl before you die)
by tye (Sage) on Jan 04, 2009 at 04:53 UTC | |
by kyle (Abbot) on Jan 04, 2009 at 16:14 UTC | |
by jplindstrom (Monsignor) on Jan 04, 2009 at 16:08 UTC | |
|
Re^2: The most common errors and warnings in Perl
by szabgab (Priest) on Dec 31, 2008 at 06:33 UTC | |
by Tanktalus (Canon) on Jan 04, 2009 at 04:14 UTC |