|Syntactic Confectionery Delight|
Optimized constants without namespace pollution? constant::co?by Anonymous Monk
|on Feb 16, 2013 at 09:31 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
Optimized constants without namespace pollution? constant::co?
This doesn't work
I think it should be possible to accomplish using Devel::Declare or maybe another way, but I don't know how
update: I found PerlX::QuoteOperator but it doesn't constant-ize (not optimized):
It CO"SHAM" becomes/Deparses as CO('SHAM')
Can Devel::Declare make constants, ie CO(SHAM) becomes "SHAM" instead of CO("SHAM") ?