The following module was proposed for inclusion in the Module List:
modid: Constant:: DSLIP: bdprp description: Create read-only scalars, arrays, hashes. userid: ROODE (Eric J. Roode) chapterid: 2 (Perl_Core_Modules) communities: RPI lily server similar: "use constant" pragma rationale: Perl's built-in pragma creates only scalars and lists, creates variables that have no leading $ character, and which cannot be interpolated into strings. Also, it works only at compile time. Constant.pm, on the other hand, will work with global variables and with lexical ("my") variables. It will create scalars, arrays, or hashes, all of which look and work like normal, non-constant Perl variables. Constant.pm uses tied variables, so it has a performance penalty as compared to "use constant", but I believe it makes a valuable complement to the pragma. enteredby: ROODE (Eric J. Roode) enteredon: Thu Mar 7 20:03:19 2002 GMT The resulting entry would be: Constant:: bdprp Create read-only scalars, arrays, hashes. ROODE Thanks for registering, The Pause Team PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=1d000000_8c0d809b927c429c&SUBMIT_pause99_add_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=1d000000_8c0d809b927c429c&SUBMIT_pause99_add_mod_insertit=1