in reply to Re^11: Constant subroutine main::C redefined
in thread Constant subroutine main::C redefined
Of course, just because the warning will be generated; doesn't mean it has to be displayed. $SIG{__WARN__} can catch and hide it.
Really? What am I doing wrong then?
C:\test>perl -wE"$SIG{__WARN__}=sub{}; sub f(){1}; say f; sub f(){2}; +say f;" Constant subroutine f redefined at -e line 1. 1 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: Constant subroutine main::C redefined
by tobyink (Canon) on Sep 10, 2012 at 23:50 UTC | |
|
Re^13: Constant subroutine main::C redefined
by Anonymous Monk on Sep 10, 2012 at 23:56 UTC |