in reply to determine the variable causing the error: Use of uninitialized value
It may help to trap the issue using a SIG handler. You can then do things like set a breakpoint in the handler and inspect variables, or add extra diagnostics to help track down the issue. Sig handlers look like:
$SIG{__WARN__} = \&DoWarn; $SIG{__DIE__} = \&DoDie; sub DoWarn { my @params = @_; warn @params; return; } sub DoDie { my @params = @_; die @params; }
|
|---|