Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Perl-Critic CPAN distribution.

Report information
The Basics
Id: 14862
Status: resolved
Priority: 0/
Queue: Perl-Critic

People
Owner: thaljef [...] cpan.org
Requestors: kclark [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: 0.07



Subject: "Unpackaged code" warning for "use strict;"
For the following code: #!/usr/local/bin/perl use strict; use warnings; print "Hello!\n"; I get this from perlcritic: Unpackaged code at line 3, column 1. Violates encapsulation That doesn't seem right. ky
From: kclark [...] cpan.org
[guest - Fri Sep 30 16:27:51 2005]: Show quoted text
> For the following code: > > #!/usr/local/bin/perl > > use strict; > use warnings; > > print "Hello!\n"; > > I get this from perlcritic: > > Unpackaged code at line 3, column 1. Violates encapsulation > > That doesn't seem right. > > ky
OK, so I just read the manpage on this where you talk about putting a "main" package declaration. That just seems a might bit picky, but there is the .perlcriticrc workaround. So I guess just ignore this. ky