On Fri, 9 Nov 2001, Gibbs Tanton - tgibbs wrote:
> 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?
I got a warning just by typing things in at the command-line:
bmccoy:~$ perl -w
use strict;
use constant I => 1;
use constant I => 2;
Constant subroutine I redefined at /usr/lib/perl5/5.6.1/cygwin/constant.pm line91.
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
Knocked, you weren't in.
-- Opportunity
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]