in reply to Re^2: "use strict" sets $!
in thread "use strict" sets $!

Maybe you can try The VTrace Tool