Re: Keeping track of a variable

2004-07-29 Thread Randy W. Sims
Alok Bhatt wrote: Hi All, Can someone please tell me how do we keep track of a variable. ie Whenever a particular variable is accessed (printed, incremented etc.), a counter should increase, so that we can know how many times it has been accesssed. The mechanism is tie, see `perldoc tie` Here

Keeping track of a variable

2004-07-29 Thread Alok Bhatt
Hi All, Can someone please tell me how do we keep track of a variable. ie Whenever a particular variable is accessed (printed, incremented etc.), a counter should increase, so that we can know how many times it has been accesssed. Thanks in Advance, Regards, Alok