In article <200302090025.11716.transami / transami.net>,
Tom Sawyer  <transami / transami.net> wrote:
>On Saturday 08 February 2003 10:51 pm, Phil Tomson wrote:
>> Is there a way to get a variable in a proc that maintains it's value
>> between different calls of the proc?
>
>a = 1
>p = proc {
>	puts a
>	a+=1
>}
>

Right, I know that would work, but it's not exactly what I'm looking for 
in this case as I might want to use the proc in several places and I would 
like to have 'a' be different in each.

Phil