Moçada,

Estou colocando o teste com o perl critic em um módulo, e ele está dando
(entre outros) os seguintes erros:

# Perl::Critic found these violations in "blib/lib/Queue/Base.pm":
# Code before strictures are enabled at line 3, column 1.  See page 429 of
PBP.  (Severity: 5)
# Code before warnings are enabled at line 3, column 1.  See page 431 of
PBP.  (Severity: 4)

Mas o começo do arquivo está assim:

------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------ 8< ------
8< ------ 8< ------ 8< ------ 8< ------
 package Queue::Base;
use strict;
use warnings;

use Carp;

sub new {
------ >8 ------ >8 ------ >8 ------ >8 ------ >8 ------ >8 ------ >8 ------
>8 ------ >8 ------ >8 ------ >8 ------

WTF???

Eu tentei colocar o strict e o warnings antes do package, mas daí ele
reclamou que estou fazendo coisas que não estão em um package... *sigh*

-- 
Alexei Znamensky [russoz_gmail_com] [russoz.wordpress.com] [
www.flickr.com/photos/alexeiz]
«Only love / Can bring the rain / That makes you yearn to the sky»
=begin disclaimer
   Sao Paulo Perl Mongers: http://sao-paulo.pm.org/
 SaoPaulo-pm mailing list: [email protected]
 L<http://mail.pm.org/mailman/listinfo/saopaulo-pm>
=end disclaimer

Responder a