You need the if $] in the first definition of FOO. That should prevent it being constant-folded.
In reply to Re^9: Constant subroutine main::C redefined
by tobyink
in thread Constant subroutine main::C redefined
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |