That's odd...I get that error as well if I use -w. But I don't if I just
say use warnings; I thought use warnings was supposed to supersede -w?
Does it not?
-----Original Message-----
From: Wagner-David
To: 'Gibbs Tanton - tgibbs'; '[EMAIL PROTECTED]'
Sent: 11/9/2001 4:30 PM
Subject: RE: constant redefinition does not produce a warning
Under 5.6.0, build 623, I get:
[C:/] aapl273
Constant subroutine I redefined at D:/Perl/lib/constant.pm line 91.
2[C:/] perl -v
This is perl, v5.6.0 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2000, Larry Wall
Binary build 623 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 16:27:07 Dec 15 2000
Wags ;)
-----Original Message-----
From: Gibbs Tanton - tgibbs [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 14:20
To: '[EMAIL PROTECTED]'
Subject: constant redefinition does not produce a warning
Does anyone know why the following:
use strict;
use warnings;
use constant I => 1;
use constant I => 2;
print I();
does not produce a warning about the redefinition of I? That is a real
pain
as I had about 60 constants and had one redefined and never knew it
until it
became a real pain to fix. I'm running perl 5.6.1. Does anyone know if
it
warns on a newer version?
Thanks!
Tanton
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]