I wish to rescind the following namespace request. It seemed like a good idea, but when I tested under Windows, case-insensitive filenames got in the way. "use Constant" is equivalent to "use constant" under Windows (and for all I know, some other platforms).
I have renamed the module to Readonly.pm, and will upload it under that name, and will redo the namespace registration under that name. I apologize for any trouble this has caused. Eric J. Roode Perl Authors Upload Server writes: > > 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 ---------------------------------------------------------------------- Eric J. Roode [EMAIL PROTECTED] Senior Software Engineer, Myxa Corporation perl -lpe "(($0 =~ '/' ? ($_ = $0 ) =~ s!\.?/!?$!:$@;~~@@~~~NO CARRIER