I have a bunch of scripts that run tool flows. Like a Makefile does but in Perl.
As part of those flows, the Perl scripts set environment vars and it's not always easy to know when they happen and hence it can be hard to reproduce individual stages of the flow.
Is there a way to hook into %ENV such that I can register a callback when the environment changes?
Can I just tie to it? %ENV is already behaving like a tie.
Follow-up: Yes. You just tie to it.