in reply to Re: perlcritic & test files
in thread perlcritic & test files
Here's critic:#!/usr/bin/perl use strict; use warnings; $thing = "bleh"; print "hello $thing $bleh\n";
And here's my result:#!/usr/bin/perl use strict; use warnings; use Perl::Critic; my $file = shift; my $critic = Perl::Critic->new(); my @violations = $critic->critique($file); print "@violations\n";
What's the purpose of this 'critic' module anyhow?$ perl critic ;perl thing Global symbol "$thing" requires explicit package name at thing line 6. Global symbol "$thing" requires explicit package name at thing line 8. Global symbol "$bleh" requires explicit package name at thing line 8. Execution of thing aborted due to compilation errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perlcritic & test files
by trwww (Priest) on Aug 02, 2011 at 18:03 UTC | |
|
Re^3: perlcritic & test files
by toolic (Bishop) on Aug 02, 2011 at 19:52 UTC |