in reply to What is the difference between the constant construct in Perl and the Readonly construct in Perl?

Also, according to Re^3: Import constants as scalar instead of bareword sub, Readonly uses tie (even in XS mode), which will have a speed hit.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

  • Comment on Re: What is the difference between the constant construct in Perl and the Readonly construct in Perl?
  • Select or Download Code