in reply to I need a simple explantion of the difference between my() and local()

I know this is getting to be a long thread, but...

Several of the answers in this thread, especially the reply offered by a, helped me to understand. It was the comment about how local pushes a new copy of the variable on a stack that is then popped when the scope is exited that helped me "see the light".

  • Comment on Re: I need a simple explantion of the difference between my() and local()
  • Download Code

Replies are listed 'Best First'.
Re: Re: I need a simple explantion of the difference between my() and local()
by Jemts (Monk) on May 04, 2001 at 02:07 UTC
    Thanks guys you really helped me understand this topic alot better. This was my first post at this site, and i was supprised to see the response I got immedeatly. Thanks alot i know understand ( though not fully) what the difference is. Thanks alot

    Jemts

    "If you're traveling in a time machine, and you're eating corn on the cob, I don't think it's going to affect things one way or the other. But here's the point I'm trying to make: Corn on the cob is good, isn't it."