in reply to Re: (Segfault) Re: is_constant() - a routine that detects constant subs
in thread is_constant() - a routine that detects constant subs

Argh. Not only is it not fixed in bleadperl, but I think bleadperl also has a bug. Check out the output using bleadperl:

$ ./perl ~/crash.pl Constant subroutine One::FOO redefined at /home/sam/crash.pl line 59. Yes Constant subroutine One::FOO redefined at /home/sam/crash.pl line 59. Yes Segmentation fault (core dumped)

So, not only is it segfaulting, but it's also printing warnings even when "no warnings" is in effect! Argh!

-sam

  • Comment on Re: Re: (Segfault) Re: is_constant() - a routine that detects constant subs
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: (Segfault) Re: is_constant() - a routine that detects constant subs
by samtregar (Abbot) on May 20, 2002 at 17:51 UTC
    According to Rafael Garcia-Suarez this is actually a deliberate change. Overwriting a constant sub is now a mandatory warning in 5.7.3. Ho hum. So now I'll just catch both errors with $SIG{__WARN__} instead of the first.

    -sam