Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-10 Thread Timothy Johnson
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

RE: Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-10 Thread David Gray
> 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

Re: Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-10 Thread Elaine -HFB- Ashton
Timothy Johnson [[EMAIL PROTECTED]] quoth: *> *>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 tem

Re: Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-13 Thread Ahmed Moustafa
Elaine -Hfb- Ashton wrote: > I always found the local, my, our mess pretty confusing and the best > explanation is MJD's "Coping with Scoping" > > http://perl.plover.com/FAQs/Namespaces.html > > Make good note of the text in red :) Elaine, thanks a lot for MJD's article. There is a great differ

Re: Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-13 Thread drieux
On Saturday, April 13, 2002, at 04:45 , Ahmed Moustafa wrote: > Elaine -Hfb- Ashton wrote: >> I always found the local, my, our mess pretty confusing and the best >> explanation is MJD's "Coping with Scoping" >> http://perl.plover.com/FAQs/Namespaces.html >> Make good note of the text in red :)

Re: Scope of my() declared variables WAS( Re: -e $filename...)

2002-04-14 Thread Jenda Krynicky
From: Ahmed Moustafa <[EMAIL PROTECTED]> > Elaine -Hfb- Ashton wrote: > > I always found the local, my, our mess pretty confusing and the best > > explanation is MJD's "Coping with Scoping" > > > > http://perl.plover.com/FAQs/Namespaces.html > > > > Make good note of the text in red :) > > Elai