Hi Monks,
Is there a module to watch an variable and print change when something change. I mean not just value stored in it. See Below:
Since perl does a lot of things for me, sometimes I'd like to know when and how then I could decide if I should prevent him to do. Now I have to print Dump variable using Devel::Peek It really annoyed. and I take a look Tie::Watch, it seems also not for me. Any suggestions? Thanks.my $c = '123'; say OK if $c >120; #here perl changes $c, from PV to PVIV.
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
In reply to how watch a variable by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |