xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how watch a variable
by SankoR (Prior) on Dec 10, 2023 at 11:38 UTC | |
by Anonymous Monk on Dec 10, 2023 at 18:38 UTC | |
by ikegami (Patriarch) on Dec 11, 2023 at 03:07 UTC | |
|
Re: how watch a variable
by choroba (Cardinal) on Dec 10, 2023 at 20:45 UTC | |
by LanX (Saint) on Dec 10, 2023 at 21:15 UTC | |
|
Re: how watch a variable
by LanX (Saint) on Dec 10, 2023 at 13:42 UTC | |
by karlgoethebier (Abbot) on Dec 10, 2023 at 20:00 UTC | |
by LanX (Saint) on Dec 10, 2023 at 20:27 UTC | |
by Anonymous Monk on Dec 10, 2023 at 16:14 UTC | |
|
Re: how watch a variable
by Polyglot (Chaplain) on Dec 10, 2023 at 22:54 UTC |