Tcl style traces

D

Derek Fountain

Does Perl have something similar to Tcl style tracing? That is, the ability
to call a subroutine when a variable is written to or read from?
 
B

Ben Morrow

Derek Fountain said:
Does Perl have something similar to Tcl style tracing? That is, the ability
to call a subroutine when a variable is written to or read from?

perldoc perltie

Ben
 
M

Malcolm Dew-Jones

Derek Fountain ([email protected]) wrote:
: Does Perl have something similar to Tcl style tracing? That is, the ability
: to call a subroutine when a variable is written to or read from?

perldoc perltie

(Not sure if the case is right)

Tie your variable to a routine that does anything you want.

The debugger may also already have a way to do this during a debug session
(I have no idea if it does, it's just a thought).

CPAN has various "tie" related modules that might be worth looking at.
 
S

Steve Lidie

Derek Fountain said:
Does Perl have something similar to Tcl style tracing? That is, the ability
to call a subroutine when a variable is written to or read from?


Tie::Watch on CPAN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top