in reply to Re: How to make Common Variables defined in Module available to Scripts
in thread How to make Common Variables defined in Module available to Scripts

Thanks shmem! Indeed, the variables are read-only, and resetting them would not be good (though, to be sure, security is not a high concern here). I'll take a look at the link you suggested. Also, I found the following CPAN module for creating read-only scalars, arrays, hashes. Looks useful, but probably overkill for what I'm doing.

memnoch

Gloria in Excelsis Deo!
  • Comment on Re^2: How to make Common Variables defined in Module available to Scripts

Replies are listed 'Best First'.
Re^3: How to make Common Variables defined in Module available to Scripts
by FunkyMonk (Bishop) on Dec 06, 2007 at 17:44 UTC
    Have a look at the standard module constant, too. It's not as flexible as Readonly, but not as dangerous, either.

Re^3: How to make Common Variables defined in Module available to Scripts
by CountZero (Bishop) on Dec 07, 2007 at 06:45 UTC
    I wouldn't worry too much about the occasional downvote: maybe someone has clicked on the wrong button or his breakfast-egg was not boiled to perfection or whatever.

    However, some may say that it is better style to update the original question-node with your comments (if they still pertain to the original question) and insights learned through studying the Monks' answers.

    Simple "Thank you!" nodes are frowned upon by many as they don't add to the discussion and may elicit cries of "XP-whoring". It is perhaps better to express your gratitude for the wisdom received by a ++ vote and a private message of thanks.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James