Here's the part I still don't understand, and maybe some of you can show me the light. What is the difference between local() and my()? I have never used local(), the only examples I've ever been given involve scoping $_, and if I am ever tempted to do that, I can usually trace it back to a bad algorithm.
-----Original Message----- From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 11:31 AM To: [EMAIL PROTECTED] Subject: Re: (-e $filename) gives Use of uninitialized value at... From:"Ahmed Moustafa" <[EMAIL PROTECTED]> > What is the default scope for a variable defined inside a subroutine? The scope os a lexical variable is always to the end of the enclosing block or eval()ed string or the file. The body of a subroutine is just a block as far as scoping is concerned. Jenda P.S.: Please do not quote the whole history of the thread if you only need to ask a simple question. =========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ========== There is a reason for living. There must be. I've seen it somewhere. It's just that in the mess on my table ... and in my brain I can't find it. --- me -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]