develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #22291] 5.8.x: no warnings "redefine" doesn't affect constant subs

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 23, 2003 13:41
Subject:
Re: [perl #22291] 5.8.x: no warnings "redefine" doesn't affect constant subs
Message ID:
20030523224752.3e48098f.rgarciasuarez@free.fr
Stas Bekman (via RT) wrote:
>    % perl-5.8.1 -le' use warnings; use constant FOO => 1; \
>      no warnings "redefine"; use constant FOO => 2;'
> Constant subroutine main::FOO redefined at
> /home/stas/perl/5.8.1/lib/5.8.1/constant.pm line 108.
> 
> you can't turn this one off even with $^W=0; the problem exists in 5.8.0
> and blead-perl.

Sam Tregar asked the same question : (and Nick I-S provided a rationale)

    http://groups.google.com/groups?threadm=20020519214851.3981.qmail%40airtrout.tregar.com

I more or less documented the fact :

    http://archive.develooper.com/perl5-changes%40perl.org/msg04919.html

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About