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
In reply to Re: Refactoring Perl 3 - Inline Temp
by BrowserUk
in thread Refactoring Perl #3 - Inline Temp
by agianni
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |