|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re^11: Constant subroutine main::C redefinedby tobyink (Canon) |
| on Sep 10, 2012 at 22:43 UTC ( [id://992869]=note: print w/replies, xml ) | Need Help?? |
|
Well, if you want constant folding, then you'll have to deal with the warning being generated. It's a mandatory warning. Of course, just because the warning will be generated; doesn't mean it has to be displayed. $SIG{__WARN__} can catch and hide it.
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||