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: 70870
Status: open
Priority: 0/
Queue: Perl-Critic

People
Owner: Nobody in particular
Requestors: gstainsb [...] bigpond.net.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From gstainsb [...] bigpond.net.au Sun Sep 11 04: 00:23 2011
MIME-Version: 1.0
X-Sih-MSG-ID: qRo0EtL2TAD0zmQs0WyzOwB8yAngqyAv8Z4WX81lqhgGSEfdu8PWU6nmLbMilM721T9cNhKPPmEqYq/0X4/Qs+M=
X-Spam-Status: No, score=-6.121 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
X-Mailer: Microsoft Office Outlook 12.0
X-Spam-Flag: NO
Content-Language: en-au
content-type: text/plain; charset="utf-8"
Message-ID: <000101cc7058$d287f460$7797dd20$ [...] net.au>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.121
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id EF47D240865 for <cpan-bug+perl-critic [...] hipster.bestpractical.com>; Sun, 11 Sep 2011 04:00:22 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MwNQZSYCq17j for <cpan-bug+perl-critic [...] hipster.bestpractical.com>; Sun, 11 Sep 2011 04:00:22 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id E4FF524055D for <bug-perl-critic [...] rt.cpan.org>; Sun, 11 Sep 2011 04:00:21 -0400 (EDT)
Received: (qmail 21833 invoked by uid 103); 11 Sep 2011 08:00:21 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 11 Sep 2011 08:00:21 -0000
Received: from nskntmtas02p.mx.bigpond.com (HELO nskntmtas02p.mx.bigpond.com) (61.9.168.140) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Sun, 11 Sep 2011 01:00:19 -0700
Received: from nskntotgx04p.mx.bigpond.com ([144.132.41.228]) by nskntmtas02p.mx.bigpond.com with ESMTP id <20110911080013.XADC3825.nskntmtas02p.mx.bigpond.com [...] nskntotgx04p.mx.bigpond.com> for <bug-perl-critic [...] rt.cpan.org>; Sun, 11 Sep 2011 08:00:13 +0000
Received: from Anathema ([144.132.41.228]) by nskntotgx04p.mx.bigpond.com with ESMTP id <20110911080013.XXSC1840.nskntotgx04p.mx.bigpond.com [...] Anathema> for <bug-perl-critic [...] rt.cpan.org>; Sun, 11 Sep 2011 08:00:13 +0000
Delivered-To: cpan-bug+perl-critic [...] hipster.bestpractical.com
Subject: RequireUseWarnings ignores #! -w switch
Return-Path: <gstainsb [...] bigpond.net.au>
Thread-Index: AcxwWNJmB5Q5jKYxSGuPQ8HCzPdY7Q==
X-RT-Mail-Extension: perl-critic
X-Original-To: cpan-bug+perl-critic [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Sun, 11 Sep 2011 18:00:07 +1000
X-Spam-Level:
To: <bug-perl-critic [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
From: "Gerard Stainsby" <gstainsb [...] bigpond.net.au>
X-RT-Original-Encoding: us-ascii
Content-Length: 364
Download (untitled) / with headers
text/plain 364b
while modules obviously require an explicit use warnings; because they are not directly invoked, the perl interpreter parses the #!/usr/bin/perl line of scripts, and turns on warnings if -w is specified. Shouldn't this be enough? I don't want to turn off the rule in case I inadvertently leave off the -w switch, and I agree warnings are important. Gerard
From jeff [...] imaginative-software.com Sun Sep 11 13: 28:29 2011
MIME-Version: 1.0 (Apple Message framework v1084)
X-Spam-Status: No, score=-6.9 tagged_above=-99.9 required=10 tests=[AWL=0.000, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20562-1315728023-1855.70870-4-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1084)
X-Spam-Flag: NO
References: <RT-Ticket-70870 [...] rt.cpan.org> <000101cc7058$d287f460$7797dd20$ [...] net.au> <rt-3.8.HEAD-20562-1315728023-1855.70870-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <18040EB5-BD8C-408D-84A4-C4AA494D44B6 [...] imaginative-software.com>
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id A74542408BB for <cpan-bug+Perl-Critic [...] hipster.bestpractical.com>; Sun, 11 Sep 2011 13:28:29 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05AoYpAZO9Np for <cpan-bug+Perl-Critic [...] hipster.bestpractical.com>; Sun, 11 Sep 2011 13:28:28 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id B68C9240887 for <bug-Perl-Critic [...] rt.cpan.org>; Sun, 11 Sep 2011 13:28:27 -0400 (EDT)
Received: (qmail 29322 invoked by uid 103); 11 Sep 2011 17:28:26 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 11 Sep 2011 17:28:26 -0000
Received: from mail-yx0-f178.google.com (HELO mail-yx0-f178.google.com) (209.85.213.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Sun, 11 Sep 2011 10:28:24 -0700
Received: by yxj19 with SMTP id 19so2093277yxj.9 for <bug-Perl-Critic [...] rt.cpan.org>; Sun, 11 Sep 2011 10:28:21 -0700 (PDT)
Received: by 10.68.7.36 with SMTP id g4mr1295558pba.109.1315762101066; Sun, 11 Sep 2011 10:28:21 -0700 (PDT)
Received: from [10.0.1.3] (c-24-6-208-213.hsd1.ca.comcast.net. [24.6.208.213]) by mx.google.com with ESMTPS id h5sm36803041pbq.11.2011.09.11.10.28.19 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 11 Sep 2011 10:28:19 -0700 (PDT)
Delivered-To: cpan-bug+Perl-Critic [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #70870] RequireUseWarnings ignores #! -w switch
Return-Path: <jeff [...] imaginative-software.com>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Perl-Critic [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-critic
Date: Sun, 11 Sep 2011 10:28:18 -0700
X-Spam-Level:
To: bug-Perl-Critic [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Jeffrey Thalhammer <jeff [...] imaginative-software.com>
RT-Message-ID: <rt-3.8.HEAD-20565-1315762110-5.70870-0-0 [...] rt.cpan.org>
Content-Length: 477
Download (untitled) / with headers
text/plain 477b
On Sep 11, 2011, at 1:00 AM, Gerard Stainsby via RT wrote: Show quoted text
> while modules obviously require an explicit > > use warnings; > > because they are not directly invoked, the perl interpreter > parses the #!/usr/bin/perl line of scripts, and turns on warnings > if -w is specified.
The warnings pragma is a much better way to activate warnings than the -w flag. See http://perldoc.perl.org/perllexwarn.html for details (especially the section: What's Wrong With "-w"). -Jeff


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.