On Jan 20, 2004, at 5:09 AM, Tushar Gokhale wrote:

Thanks James for your prompt reply and sorry for my poor english. I'll get
back to the point to clear the confusion. There are 5 scripts which I'm
running and each script has %enumerations with its own values. There is one
library where most of my functions are stored. My each script has the line
"require /xxx/xx/lib_file_name" I have one single program that calls each
script one after another. Once the first script is over, the next script
start executing its code.. and the problem begings for the values which
were already defined by the %enumerations. In some cases disable has value
1 and in some cases its 3 or may change... What i want to do is either it
should able to overright the new values with each script or it should able
forget the first values as soon as it moves to the next script. Is this
possible?

Local my() variables, like the one you showed yesterday would be scoped to the file or package they are in. Any subroutines in the same file or package would see them. Any code using a "require" statement would not. That sounds like what you want.


However, since it isn't working, we can assume something else is going on. Can you send us some code, so we can see how you are using the above?

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to