Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: OOP - Constant Vs. Subroutine ()by diotalevi (Canon) |
on May 13, 2007 at 03:59 UTC ( [id://615140]=note: print w/replies, xml ) | Need Help?? |
If you'd used constant instead of doing it manually and were also using perl 5.10, you'd also avoid the memory overhead for the function DoesNotChange. Anyone doing sub BAR () { FOO } won't get the optimization. ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In Section
Meditations
|
|