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
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