in reply to Refactoring Perl #3 - Inline Temp
While Perl lacks the means to turn a once dynamic variable into a read-only (does anyone know of one?)
See Hash::Util::lock_hash() and Internals::SetReadOnly().
See also Re^2: OOP - Constant Vs. Subroutine for why you might prefer these methods to Readonly
|
|---|