in reply to Re^4: How to turn a "developer code" into a "user code"
in thread How to turn a "developer code" into a "user code"

Indeed.

use constant does "work" for array and hash references, though not in an especially useful way. The reference to the hash/array becomes constant, but the contents of the hash/array can still be manipulated.